Added Server Response Error Handling #1011

Merged
ProfessorDey merged 2 commits from patch-1 into master 2019-05-31 20:36:09 +02:00

2 commits

Author SHA1 Message Date
ProfessorDey
8a6cd2db13
Tab Removal & Check Abstraction
Per Jessop's request: https://github.com/lbryio/spee.ch/pull/1011#pullrequestreview-243975520
Corrected tabs and added the clarified abstraction to the request state check.
2019-05-31 00:15:27 +01:00
ProfessorDey
82ab3b47b1
Added Server Response Error Handling
Presently the spee.ch client will error out if it received an unexpected response, resulting in hangs and a very vague JSON parsing error. This failsafe will catch the known issue of server request size limits causing 413 responses if misconfigured, making things easier to diagnose, as well as catching any other unexpected responses cleanly. Further specific behaviours can be added to ensure administrators spend less time debugging simple configuration issues.

The 413 error response should be fairly self explanatory, sufficient to not need further documentation, though adding an addendum to the README.md would aid other developers have a smooth experience.
2019-05-30 14:33:53 +01:00