Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 response crashes browser #54

Open
holgersindbaek opened this issue Oct 14, 2016 · 1 comment
Open

400 response crashes browser #54

holgersindbaek opened this issue Oct 14, 2016 · 1 comment

Comments

@holgersindbaek
Copy link

I have a post request that looks like this:

    # Make request
    @client().v3.create(path, options).success (data) =>
      console.log("success")
    .error (errorMessage) =>
      console.log("error")

When I make a request where I know I'll get a 400 response, I get this output:

screen shot 2016-10-14 at 7 53 50 pm

Issue is that the page has basically crashes at this point. I can't press anything or reload the site. 10-20 seconds passes and then I get this screen:

screen shot 2016-10-14 at 7 54 18 pm

So what's the correct way to handle an error response with jQuery rest?

@holgersindbaek
Copy link
Author

No response? Is this a dead library? Should I find another library to use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant