[–] phillipseamore 3y ago ↗ One thing missing there, you can't be certain that the response is JSON, so I do a JSON.parse in a try/catch and parse response.text(), if it fails the catch returns the text in the promise.
1 comment
[ 4.9 ms ] story [ 16.4 ms ] thread