Skip to content

Commit b48c2ae

Browse files
author
Matt Bernier
authored
Merge pull request #42 from mptap/create-troubleshooting
Demonstrate how to review the request body for troubleshooting
2 parents c0d64f2 + b54554e commit b48c2ae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

TROUBLESHOOTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ If you can't find a solution below, please open an [issue](https://github.com/se
1111

1212
When debugging or testing, it may be useful to examine the raw request body to compare against the [documented format](https://sendgrid.com/docs/API_Reference/api_v3.html).
1313

14-
You can do this right before you call `request.setBody(mail.build())` like so:
14+
You can do this like so:
1515

1616
```java
17-
System.out.println(mail.build());
18-
```
17+
System.out.println(request.getBody());

0 commit comments

Comments
 (0)