Timeout when POST-REDIRECT-GET with interception enabled
See original GitHub issueSteps to reproduce
Tell us about your environment:
- Puppeteer version: 1.8
- Platform / OS version: Ubuntu locally and AWS Lambda remotely, using either Chrome version fetched by Puppeteer or our own homerolled Chrome.
- Node.js version: 10.10
What steps will reproduce the problem?
We experience timeouts when using Puppeteer, with interception, to interactively submit a form on a page that returns a redirect to a second page. When we disable interception, the redirects resolve without issue.
- Enable interception in Puppeteer.
- Open a form page that on submission will return a redirect. For example, in
test.cgi
:
#! /bin/bash
if [ "$CONTENT_LENGTH" != "" ]; then
cat > /dev/null
cat <<_
Location: /test.cgi?22222
Status: 302 Found
_
else
cat <<_
Content-type: text/html
<!doctype html5>
<form method=POST action="/test.cgi?111">
<input id=a name=food>
<input id=b type=submit>
$CONTENT_LENGTH
</form>
_
fi
- Submit the form via
await chromePage.click("#b");
- Timeout!
What is the expected result?
Successful redirect.
What happens instead?
Timeout.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Spring security doesn't redirect to last requested page login ...
RELEASEin my application. Once timeout happens and then user click any URL, it gets redirected to logout page and once the authentication is...
Read more >AzureAD Application Proxy: some kind of timeout
Hi,. we are using an on-premises-app behind an Azure AD Application Proxy. Everything seems to be working fine, but the page crashes after...
Read more >Cypress cy.intercept Problems - Gleb Bahmutov
The POST /todos network call the application has made matches two intercepts, but the Command Log only prints the first intercept's alias. In ......
Read more >Redirections in HTTP - MDN Web Docs - Mozilla
In HTTP, redirection is triggered by a server sending a special redirect response to a request. Redirect responses have status codes that start ......
Read more >Redirect to the Previous URL After Login with Spring Security
2. Common Practice · using HTTP Referer header · saving the original request in the session · appending original URL to the redirected...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Downgrading to version
1.6.2
appears to have fixed my problem. I tried version1.7.0
, but had no luck.Dupe of #3471