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
Fixes #258, handles undefined Response object rather than throwing an… #260
Conversation
@mikelax any eta on when this may get merged? |
I am planning to try and get the 1.1.0 release out next week. |
Nice, looking forward to that 😄 |
@mikelax Yeah, I'm happy to resolve the merge conflicts. |
@mikelax Meant to knock this out earlier, but been crazy around here. It turns out that the refactor resolved the issues around my changes, so my changes in |
Fixes #258, handles undefined Response object rather than throwing an…
Thanks for fixing this @mikelax. Could you also tag the v1.1.0 version in Git/GitHub? |
np @Starefossen I just created the v1.1.0 release. |
I don't see any changes in this PR other than the test case. Should it fix something? It definitely doesn't fix #258. |
@kadishmal As described in the thread, I had fixed this issue in the 1.0 code, but there was a major refactor of the file in 1.1 that held the root of the issue which resolved the problem. The tests that were added were cases that I was able to repro the issue in 1.0, but they pass with no fix in 1.1; thus, the PR became tests confirming the issue was resolved rather than the resolution. If you're still seeing this in 1.1, you should include the repro. |
… uncaught error
I kept getting this error on random occasions:
When I dug down further, I could set that when
res
wasundefined
, it was because the server was unexpectedly timing out:So, if we check for the error first and fire the callback immediately there's not
res
, the problem is resolved.This PR is an alternative to #240 and fixes #237