question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timeout when POST-REDIRECT-GET with interception enabled

See original GitHub issue

Steps 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.

  1. Enable interception in Puppeteer.
  2. 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
  1. Submit the form via await chromePage.click("#b");
  2. Timeout!

What is the expected result?

Successful redirect.

What happens instead?

Timeout.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
bgshacklettcommented, Sep 22, 2018

Downgrading to version 1.6.2 appears to have fixed my problem. I tried version 1.7.0, but had no luck.

0reactions
aslushnikovcommented, Nov 15, 2018

Dupe of #3471

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found