-
Notifications
You must be signed in to change notification settings - Fork 285
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
s3 fail detector #59
s3 fail detector #59
Conversation
I agree that all the higher-level API functions should check for 2xx or 3xx status codes, and if not, return an error. Perhaps they should even read in the response body as the error message. This particular implementation isn't great, as it only applies to |
Here is how Dynode implements it: They have the luxury of getting JSON back instead of XML, of course. Also we'd have to be sure not to just check for 200, but for 2xx as well (e.g. 201 on PUT). |
It would also be cool to be able to provide more events on the http request, like on('close') and on('clientError'). We also got S3 fails in production and since these events are not thrown/handled, we ran into an uncaught exception. : / |
@tim-kos: I don't think |
Sorry, I meant on('error'). |
@tim-kos We currently do have listeners for /~https://github.com/LearnBoost/knox/blob/18afc26fa586ba2df813019de5cc7efb249deda9/lib/client.js#L35 |
Okay thank you. I missed those. |
Ok, just let me know if you do spot anything Knox can do to help with your unhandled exceptions :) On Aug 2, 2012, at 10:30, "Tim Koschuetzki" reply@reply.github.com wrote:
|
Shouldn't the 307 code be implemented by trying again automatically at the suggested URL? |
Closed in favor of #114 |
Not sure how you'd like to do this! Ran into s3 fails on a production app!