I noticed that with parse: true, my DO methods that returned a non-JSON string caused JSON.parse errors. This was because the catch clauses never actually did anything, because the transformResponse method returned the Promise without handling errors.
I noticed that with
parse: true
, my DO methods that returned a non-JSON string caused JSON.parse errors. This was because thecatch
clauses never actually did anything, because thetransformResponse
method returned the Promise without handling errors.