Can't load the webpage when attempting to use pyppeteer #706
Unanswered
liberty-rising
asked this question in
Problem
Replies: 1 comment 2 replies
-
This looks like a browser compatibility issue with this syntax. What web driver are you using? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What was done to rule out other issues:
I've tried using Pyppeteer to take snapshots of different webpages with no problem so the issue does not appear to be within its framework. I've also tried it on a locally hosted FASTAPI backend documentation page with no problem.
Explanation of issue
The issue arises when attempting to load up the main app which uses IDOM. The page's title tag and logo populate with no problem, however the issue appears to take place once the browser attempts to run the following script:
Checking the developer console I get the following error:
Uncaught SyntaxError: Unexpected token .
Upon looking at the source of the issue, it is found in the following directory:
http://localhost:8001/client/_snowpack/pkg/common/server-a6f83155.js
Within this javascript file, the error is produced by the following function:
The exact issue shown within the script:
Once again, hovering over the red underlined code highlights the error as:
Uncaught SyntaxError: Unexpected token .
Any feedback would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions