-
-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2808b0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should'nt it work with 408 too?
https://github.com/sindresorhus/ky/blob/master/readme.md#retry
2808b0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DanielRuf yes, you would think... and I believe it will work in production, but apparently not in our tests for some reason.
Feel free to keep debugging this. See my comment here: #231 (comment)
2808b0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sholladay What about
response.statusMessage = 'Request Timeout';
?2808b0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@szmarczak I'm not sure I understand your comment. Are you suggesting that I try to switch it back to use a
408
status code (with that message)? I don't see why that would fix it.2808b0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I haven't looked at the error, thought it wasn't providing the HTTP status message. I'll test it locally.
2808b0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sholladay Locally I get the same error. I'm trying to fix it now.
2808b0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for trying @szmarczak. It's a hard one... I recommend running Puppeteer in headful mode by launching with
headless: false
.2808b0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sholladay Seems like Google Chrome is doing retries on its own: #233
2808b0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I agree. But it's weird that I couldn't reproduce it in normal Chrome without Puppeteer.
2808b0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tried non-Puppeteer yet. Let me see...