Skip to content
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

Mock api during page on load cause all download resource freeze #77

Open
atthaboon opened this issue Jan 16, 2021 · 1 comment
Open
Assignees
Labels
bug Something isn't working
Milestone

Comments

@atthaboon
Copy link
Collaborator

Describe the bug
run mock api will require page interception in chrome.
await page.setRequestInterception(True)
This will cause all download resource freeze if page still loading the resource

To Reproduce
Steps to reproduce the behavior:

  1. Goto https://angular.io/
  2. run mock api
  3. check network resource found download pending

Expected behavior
mock should not freeze any download

@atthaboon atthaboon self-assigned this Jan 16, 2021
@atthaboon atthaboon added this to the v2.1.9 milestone Jan 16, 2021
@atthaboon
Copy link
Collaborator Author

atthaboon commented Jan 16, 2021

Still issue under puppeteer library.
puppeteer/puppeteer#5003

Work around:
Need to mock API before page load

@atthaboon atthaboon modified the milestones: v2.1.9, v3 Jan 16, 2021
@atthaboon atthaboon added the bug Something isn't working label Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant