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

Socket closed: The URL ... does not match any allowed pattern from undefined #8

Open
kdheepak opened this issue Dec 8, 2024 · 6 comments

Comments

@kdheepak
Copy link

kdheepak commented Dec 8, 2024

I get this error message when I try to visit my domain where I have cursor party enabled:

image

The cursor party appears to be working when I add http://localhost:4321/* to one of the allow listed sites and when I test it with my development environment. So it appears that the code I'm using (i.e. adding the script tag to before the body end tag works). But it doesn't seem to work once I deploy my static site to cloudflare.

Do you happen to know what I may be doing incorrectly?

@kdheepak
Copy link
Author

kdheepak commented Dec 8, 2024

Never mind, it appears to work when I use different devices, just doesn't show the cursors in different tabs in the same browser (although it does do that when I enabled localhost and run my local setup).

I'm still getting the warning in all cases except in the localhost setup.

@kdheepak kdheepak closed this as completed Dec 8, 2024
@kdheepak
Copy link
Author

kdheepak commented Dec 8, 2024

I apologize, what I was seeing were multiple cursors from tldraw. I'm still not seeing the cursors from cursor-party (except in localhost:4321).

@kdheepak kdheepak reopened this Dec 8, 2024
@kdheepak
Copy link
Author

kdheepak commented Dec 8, 2024

Weirdly, I'm not seeing any errors on https://cursor-party.whitep4nth3r.partykit.dev/ but I am seeing errors on https://cursor-party.kdheepak.partykit.dev/

image

And I can see that multiple cursors works on https://whitep4nth3r.com/

I tried in a different browser as well and I'm seeing the same result.

@whitep4nth3r apologies for the ping but I'm curious if you made any changes to your cursor-party deployment for this to work?

@kdheepak
Copy link
Author

kdheepak commented Dec 9, 2024

If I run npx partykit tail I get the following log:

🎈 PartyKit v0.0.111
---------------------
Loading environment variables from .env
Successfully created tail, expires at 2024-12-09T09:52:51Z
Connected to cursor-party, waiting for logs...
GET https://cursor-party.kdheepak.partykit.dev/cursors.js - Ok @ 12/8/2024, 10:56:23 PM
GET https://cursor-party.kdheepak.partykit.dev/parties/main/REDACTED=?_pk=REDACTED&name=Anonymous+User&color=%230000f0&from=https%3A%2F%2Fdraw.kdheepak.com%2F - Ok @ 12/8/2024, 10:56:24 PM
GET https://cursor-party.kdheepak.partykit.dev/parties/main/REDACTED=?_pk=REDACTED&name=Anonymous+User&color=%230000f0&from=https%3A%2F%2Fdraw.kdheepak.com%2F - Exception Thrown @ 12/8/2024, 10:56:29 PM
  Error: Network connection lost.
GET https://cursor-party.kdheepak.partykit.dev/parties/main/REDACTED=?_pk=REDACTED&name=Anonymous+User&color=%230000f0&from=https%3A%2F%2Fdraw.kdheepak.com%2F - Exception Thrown @ 12/8/2024, 10:56:35 PM
  Error: Network connection lost.

I'm not sure what to make of that though.

image

@whitep4nth3r
Copy link

@kdheepak Everything I have modified from the fork is in this list of commits all pushed to my fork on 8th November: https://github.com/whitep4nth3r/cursor-party/commits/main/

@kdheepak
Copy link
Author

kdheepak commented Dec 9, 2024

Thanks for the reply! Weirdly, when I try your repository with no changes I still get the same error message on my account.

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