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

bug: cf worker error 1101 causing JSON.parse error #9

Open
ThaUnknown opened this issue Aug 1, 2022 · 5 comments
Open

bug: cf worker error 1101 causing JSON.parse error #9

ThaUnknown opened this issue Aug 1, 2022 · 5 comments

Comments

@ThaUnknown
Copy link
Contributor

Error 1101 Ray ID: 73427f0fcf93b363 • 2022-08-01 23:53:59 UTC
Worker threw exception
What happened?
You've requested a page on a website (p2pcf.minddrop.workers.dev) that is on the Cloudflare network. An unknown error occurred while rendering the page.

What can I do?
If you are the owner of this website:
you should login to Cloudflare and check the error logs for p2pcf.minddrop.workers.dev.

POST https://p2pcf.minddrop.workers.dev/ 500

causes:

SyntaxError: Unexpected token < in JSON at position 0

at:

const res = await fetch(this.workerUrl, {

@gfodor
Copy link
Owner

gfodor commented Aug 2, 2022

Is this happening continuously or sporadically? I've noticed occasionally cloudflare throws errors about a connection loss but haven't investigated. (The client code should obviously handle this better.)

If it's continuous, please try deploying the worker yourself to see if you can reproduce and tail the log to get the underlying bug. Thanks!

@ThaUnknown
Copy link
Contributor Author

continuously by far

@gfodor
Copy link
Owner

gfodor commented Aug 3, 2022

Can you paste a dump of the payload going to the server or a CURL to repro? (Right click in the network tab and copy as curl)

@ThaUnknown
Copy link
Contributor Author

ThaUnknown commented Aug 5, 2022

payload:

{"r":"77dc3677df83be5f","k":"aR6mDaWWriOXvezZM1nRJ8wfIWE","d":["C8NprUJbq26mEvHaCdmwO+HqMGU","d8a4cc5b7b1732dd",false,"HpVqtw9iAzantbZBE7BZn+zjJerYXHlor0PFOqKEOds=",1659709213060,["IP"]],"t":1659709318894,"x":120000,"p":[]}

@ThaUnknown
Copy link
Contributor Author

this could be lightly related to #14

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

2 participants