Skip to content

Commit 281048f

Browse files
committed
Add some documentation on handling SSL errors
1 parent 80f0285 commit 281048f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

TROUBLESHOOTING.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ If you can't find a solution below, please open an [issue](https://github.com/se
33
## Table of Contents
44

55
* [Viewing the Request Body](#request-body)
6+
* [Handling SSL Errors](#ssl-errors)
67

78
<a name="request-body"></a>
89
## Viewing the Request Body
@@ -14,3 +15,10 @@ echo $response->statusCode();
1415
echo $response->body();
1516
echo $response->headers();
1617
```
18+
19+
<a name="ssl-errors">
20+
## Handling SSL Errors
21+
22+
If any SSL errors occur during API calls, a `RuntimeException` will be thrown. This will provide information to help debug the issue further.
23+
24+
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.

0 commit comments

Comments
 (0)