/home/techb158/immovalet.com/vendor/sendgrid/php-http-client
NameSizeModeActions
.github/-0755rm
examples/-0755rm
lib/-0755rm
static/-0755rm
test/-0755rm
use_cases/-0755rm
.codeclimate.yml2890644editdlrm
.gitignore1450644editdlrm
.php_cs.dist6030644editdlrm
.travis.yml15420644editdlrm
CHANGELOG.md152670644editdlrm
CODE_OF_CONDUCT.md32510644editdlrm
composer.json11600644editdlrm
CONTRIBUTING.md65210644editdlrm
Dockerfile3260644editdlrm
FIRST_TIMERS.md67950644editdlrm
ISSUE_TEMPLATE.md7430644editdlrm
LICENSE10970644editdlrm
Makefile2010644editdlrm
PULL_REQUEST_TEMPLATE.md16450644editdlrm
README.md55770644editdlrm
TROUBLESHOOTING.md10550644editdlrm
twilio_sendgrid_logo.png145960644editdlrm
USAGE.md28820644editdlrm
Edit: /home/techb158/immovalet.com/vendor/sendgrid/php-http-client/TROUBLESHOOTING.md (1055B)
If you can't find a solution below, please open an [issue](https://github.com/sendgrid/php-http-client/issues). ## Table of Contents * [Viewing the Request Body](#request-body) * [Handling SSL Errors](#ssl-errors) ## Viewing the Request Body When debugging or testing, it may be useful to examine the raw request body. In the `examples/example.php` file, after your API call, use this code to echo out the status code, body, and headers: ```php echo $response->statusCode(); echo $response->body(); echo $response->headers(); ``` ## Handling SSL Errors If any SSL errors occur during API calls, an `InvalidRequest` will be thrown. This will provide information to help debug the issue further. If the issue is caused by an unrecognized certificate, it may be possible that PHP is unable to locate your system's CA bundle. An easy fix would be requiring the `composer/ca-bundle` package - this library will automatically detect and use that to locate the CA bundle, or use Mozilla's as a fallback.