Skip to content

Improve error handling#38

Merged
metagrover merged 4 commits intoappbaseio:masterfrom
dhruvdutt:err
Apr 23, 2018
Merged

Improve error handling#38
metagrover merged 4 commits intoappbaseio:masterfrom
dhruvdutt:err

Conversation

@dhruvdutt
Copy link
Copy Markdown

Fixes #36 #163

@divyanshu013
Copy link
Copy Markdown

Why is the fetch request not getting caught in case of status >= 400?

@dhruvdutt
Copy link
Copy Markdown
Author

dhruvdutt commented Apr 20, 2018

@divyanshu013 I think that's how it works. An error is not an exception. 🤔 😄

I think some fetch libraries might have different implementation though.

Further reading: #36 #18, #203.

@dhruvdutt dhruvdutt requested a review from divyanshu013 April 20, 2018 07:30
package.json Outdated
{
"name": "appbase-js",
"version": "2.3.0",
"version": "2.3.1",
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be a patch release or something else?

I hope it doesn't break things for those who depends on status 400 inside .on('data').

cc @divyanshu013 😋

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do a major release 🙏

Copy link
Copy Markdown

@divyanshu013 divyanshu013 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, if you can add tests for these cases that would be awesome 🔥

Copy link
Copy Markdown

@metagrover metagrover left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@metagrover metagrover merged commit c9ecb36 into appbaseio:master Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants