Commit cd1f725
Merge #231
231: Handle case when client returns a 500 error without a JSON response r=curquiza a=rafaeelaudibert
When MeiliSearch is running behind any reverse proxy and does not respond to the request in time, the gateway may return a plain HTTP error page. The client tries to parse such a response in order to determine if there are any errors and end up raising JSON::ParseError, because the proxies tend to return an HTML body.
Closes #88
Co-authored-by: RafaAudibert <[email protected]>
Co-authored-by: Clémentine Urquizar <[email protected]>1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
0 commit comments