Comments (8)
thx for the report! We noticed the same for our cloud (where we allow anonymous access if wanted), and are also using notoken
as a value for this case. It's on the list, right now the server will just wait for the auth token if you have an authentication hook (onAuthenticate
defined).
from hocuspocus.
Hi @janthurau, I don't have an onAuthenticate
hook on my server, but I still have this error.
The first loading is ok, but when it reconnects after some timeout, the connection closes and won't open.
I've tried to work around it in many ways described in the documentation but to no avail.
I'm using the latest version of HocuspocusProvider and HocuspocusServer - 2.0.6
Can you suggest something?
Thanks!
from hocuspocus.
I am passing a token (intentionally) and I'm still getting this message :D
from hocuspocus.
I am passing a token (intentionally) and I'm still getting this message :D
Same here
from hocuspocus.
I cannot reproduce this (@valstu @juliankrispel @DenysPoliarush), if you can provide me with a sandbox / replit I'll have a look right away. Please move to #566 though, this issue here is about something else.
from hocuspocus.
I'm not 100% sure yet but this could be related to thing that React in strict mode will call all the effects twice on initial render (mount, unmount and mount again). I destroyed the connection when unmounting (using useEffect return) as it is supposed to but it seems that there are two websocket connections after that which somehow breaks things. I guess the hocuspocus instance was destroyed but not the websocket, anyways it was a late night while debugging this so some of the facts has disappeared from my brain 😅 But I'll try to see if I can reproduce some sandbox in the coming days.
from hocuspocus.
I am passing a token (intentionally) and I'm still getting this message :D
Same here
@juliankrispel @valstu hi. Have you managed to investigate on this? I am also passing token, but i am receiving these messages. It doesn't looks to me that there are any multiple connections and I am pretty sure that every time I initiate connection i pass the token.
from hocuspocus.
@AliMamed It's being tracked in #566. This ticket is for a different issue.
from hocuspocus.
Related Issues (20)
- Support logging request/socket information in custom Logger.log function HOT 1
- Unsure how to fallback gracefully from initial provider connection issues HOT 3
- Migrate from slate js to prosemirror HOT 1
- Unnecessary onStoreDocumentHooks call on last connection close (potential data loss) HOT 1
- Provider downloads document content twice when syncing initially HOT 1
- Hang caused by not cleaning up Awareness in provider HOT 1
- Do collaboration history and auto-versioning work? HOT 1
- Add custome field to the Webhook HOT 1
- Provider.disconnect prevents subsequent provider.connect from working HOT 1
- 2.10.0 breaks provider in nodejs HOT 8
- The server document judgment is always empty, resulting in duplicate data. HOT 2
- backend onChange undefined HOT 2
- Server crashed when webhook receives 400 status code response HOT 3
- Inaccurate document type check in onLoadDocument
- use lexical TypeError: The encoded data was not valid for encoding utf-8 HOT 1
- Updates made using openDirectConnection are not synchronizing changes across different Redis instances. HOT 9
- provider.destroy will reopen connection HOT 5
- About the actual storage size of documents during collaborative editing HOT 8
- An authentication token is required, but you didn’t send one - but token was actually included HOT 7
- Connections to doc are possible while `onLoadDocument` is still in progress
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hocuspocus.