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

Some website return some invalid UTF16 ?? #666

Open
momala454 opened this issue Nov 20, 2024 · 0 comments
Open

Some website return some invalid UTF16 ?? #666

momala454 opened this issue Nov 20, 2024 · 0 comments

Comments

@momala454
Copy link
Contributor

Hi
I'm receiving the following error
Uncaught exception 'HeadlessChromium\Exception\CommunicationException\CannotReadResponse' with message Response from chrome remote interface is not a valid json response. JSON error: 10

JSON error 10 means

JSON_ERROR_UTF16 | Malformed UTF-16 characters, possibly incorrectly encoded

The exception is thrown on
vendor/chrome-php/chrome/src/Communication/Connection.php
Method dispatchMessage

The data is from a message Fetch.requestPaused, when it's trying to send a tracking data from https://www.smithsfoodanddrug.com.
The post data contains unreadable data like this, which prevent the library from doing json_decode over it

"postData":"\t\u0000\u0000\u0000\u0011i\u000e\u0006\n&J+\u0.....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant