-
Notifications
You must be signed in to change notification settings - Fork 54
docs: Adds example to review request body for troubleshooting. #30
Conversation
d1a50c8
to
a52e677
Compare
TROUBLESHOOTING.md
Outdated
@@ -0,0 +1,26 @@ | |||
If you have a non-library SendGrid issue, please contact our [support team](https://support.sendgrid.com). | |||
|
|||
If you can't find a solution below, please open an [issue](https://github.com/sendgrid/sendgrid-python/issues). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please change this from 'sendgrid-python' to 'nodejs-http-client' ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, my bad! I will fix it. Thanks.
|
||
You can do this with something like: | ||
```javascript | ||
var requestPost = client.emptyRequest() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be up for using one of the examples here to show how this pattern can be used to print the request body?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I did not get it properly. I think I already added how to log request body here, before sending the POST request. Should I have to log requestPost.body
here also?
TROUBLESHOOTING.md
Outdated
console.log(requestPost.body) | ||
|
||
client.API(requestPost, (response) => { }) | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more request! Would you be up for adding a section on logging the response using one of the examples here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done with new commit. Thanks.
a52e677
to
6c6b639
Compare
@mbernier can you please check this PR and let me know if anything else needs to be done? |
I think we're good to go! |
Hello @mukulmishra18, |
Hi @thinkingserious, Filled the form. Thanks! |
Fixes #13 .