nyaruka / temba-components

General web components for site building
Other
4 stars 7 forks source link

when postUrl returns a rejected promise, pass the whole response back instead of just 'Server failure' #275

Open susanm74 opened 1 year ago

susanm74 commented 1 year ago

would make it easier for processing errors stored in the response.xyz (ex. response.body, response.json, response.json.error, response.json.file, etc) when it's desired to know more (or display more to the user) than just 'Server failure'

an idea that springs from issue 4347 / PR https://github.com/nyaruka/temba-components/pull/276, but making a separate issue for this as the change itself and the testing burden would be nontrivial:

susanm74 commented 1 year ago

@ericnewcomer @rowanseymour

github-actions[bot] commented 1 year ago

Without activity, this issue will be closed in 14 days.

ericnewcomer commented 1 year ago

Assigning this just so it doesn't auto-close