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.

Access Denied redirect

See original GitHub issue

Steps to reproduce

Tell us about your environment:

What steps will reproduce the problem?

const browser = await puppeteer.launch({ headless: false })
const page = await browser.newPage()
await page.goto('https://www.cabelas.com/user/login.jsp')
await page.waitFor('#userName')
await page.type('#userName', 'test')
await page.type('#password', 'test')
await page.click('#logInBtn')
await page.waitFor(5000)
await page.screenshot({ path: 'failed.png' })

await browser.close()

What is the expected result?

For an error message to pop on the screen that my credentials are incorrect, as in a normal browser.

What happens instead?

The page is redirected to an Access Denied page.

image

Issue Analytics

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

github_iconTop GitHub Comments

6reactions
rotimi-bestcommented, Feb 28, 2019

@sean-hill looks like the webpage/webserver is running some checks to prevent automation scripts; I don’t think I can help somehow here.

How is it possible to identify this if supposedly puppeteer is supposed to work just as the usual chrome does?

1reaction
agustin94commented, Apr 2, 2020

try:

await page.setUserAgent(‘Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36’)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redirecting on Access Denied fails - Microsoft Q&A
I am running into an issue with redirecting of pages, specifically Access Denied at this moment, though this might also apply to Logout....
Read more >
Redirect Output to Location With “Permission denied” Error
Learn how to overcome the "Permission denied" error when redirecting output to a file.
Read more >
How To - Redirect Users With Denied Access
Create a new page and add whatever graphics or text you would like to appear to inform visitors that they do not have...
Read more >
Cloudfront to s3 redirect to subdomain giving Access denied ...
I'm trying to redirect http://example.com and https://example.com to https://www.example.com ( http://www.example.com already redirects ...
Read more >
CloudFront endpoint redirects to S3 bucket causing Access ...
CloudFront endpoint redirects to S3 bucket causing Access Denied #84. Closed. kiwifellows opened this issue on Jun 28 · 2 comments.
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