-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Not seeing error events on a browser build #553
Comments
I am not sure the error event is a thing on the browser build tho we certainly could add it. Sounds like it could be a bug for the error event not to occur. Also, I would strongly recommend that your |
OK, in that case I'll do without for the time being. Thanks! 😃 |
Oh! Perhaps this is why… in this case, no error is passed to the Is it because the status code is 409? Thus recognised as a client error, not a server error? I wasn't expecting only certain categories of errors to be emitted. 😇 Select bits from the Response object: {
clientError: true,
error: {
message: "cannot POST http://localhost/bananas (409)",
},
serverError: false,
status: 409,
text: "this server says you are bananas",
type: "text/html"
} |
This will be changed in the next version. Any non success code will be an On Saturday, February 21, 2015, Jeff Waugh [email protected] wrote:
|
By the way, I'm still not seeing events in the browser, be it |
This is still happening for me... Any updates? |
Just ran into the same problem, i'd be happy to send a pull request? The server version does a bunch of stuff in the Request.prototype.callback method that you'd expect would happen in the client aswell. The 'error' event being one of them. The following line would fix the problem in the client:
|
Here's what I'm doing:
Then deep in some other code:
The error event is never raised, so I only see a log from the .end() callback.
Am I doing something wrong? Is this a browser feature deficiency?
The text was updated successfully, but these errors were encountered: