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

JSONDecodeError on Chrome(ium) 111 #60

Open
jerivas opened this issue Mar 13, 2023 · 3 comments
Open

JSONDecodeError on Chrome(ium) 111 #60

jerivas opened this issue Mar 13, 2023 · 3 comments

Comments

@jerivas
Copy link

jerivas commented Mar 13, 2023

It looks like Chrome now requires a PUT request to start the dev tools. Starting a new tab now produces a JSONDecodeError because the response is not JSON. The actual response is a 405 with the content: Using unsafe HTTP verb GET to invoke /json/new. This action supports only PUT verb.

rp = requests.get("%s/json" % self.dev_url, json=True, timeout=timeout)

@jerivas
Copy link
Author

jerivas commented Mar 13, 2023

BTW, changing that line to requests.put(...) fixes the issue, but I also needed to work around #59 (comment) to start the tab properly

@sc231997
Copy link
Contributor

BTW, changing that line to requests.put(...) fixes the issue, but I also needed to work around #59 (comment) to start the tab properly

I have raised PR #62 for new tab change.
For me list tab is working fine on chrome version 111.0.5563.112

@4ft35t
Copy link

4ft35t commented Jul 4, 2023

https://github.com/DistriNet/pychrome works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants