Commit e450f85
committed
[feature] handle 504 response
Default handling for unexpected response bodies ([here](#492))
has revealed an unhandled 504 response from intercom.
Example message from UnexpectedResponseError:
```
Intercom::UnexpectedResponseError, Expected a JSON response body.
Instead got '<html> <head><title>504 Gateway Time-out</title></head>
<body bgcolor="white"> <center><h1>504 Gateway Time-out</h1></center>
</body> </html> ' with status code '504'.
```1 parent 65a82a2 commit e450f85
File tree
3 files changed
+14
-0
lines changed- lib/intercom
- spec/unit/intercom
3 files changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
| |||
0 commit comments