Back

Realtime {error: 1003, Message type is not valid} (on 17.0.1 + 1.6.0)

  • 0
  • Self Hosted
  • Web
  • Realtime
discorrrdbomba
30 Mar, 2025, 13:42

I am facing the above mentioned issue, no matter if I am using web-sdk 16.0.2 or 17.01 (apw server is on 1.6.0) - maybe someone could help?

TL;DR
Developers facing error 1003 while using Realtime feature. Attempted app restart did not resolve the issue. Investigated logs on console but unable to provide full object. Discovered discrepancy in required cookie naming convention for Realtime connection. Error persists with both 16.0.2 and 17.01 SDK versions. Solution may lie in ensuring correct cookie naming matching `a_session_<projectId>`.
discorrrdbomba
30 Mar, 2025, 13:43

I discovered from here: https://github.com/appwrite/sdk-for-web/blob/4c8f1cc48b5ddb466599fc12776be982c4462101/src/client.ts#L510 that its obviously necessary to have the ssr setting create session method, have the cookie named exactly like a_session_<projectId> which is not what is for example stated here: https://appwrite.io/docs/products/auth/server-side-rendering (here they used just session as cookie name. That sounds like it would be some issue, what do you think @Darshan Pandya ?

Darshan Pandya
30 Mar, 2025, 13:44

are there more logs in the console tab? I have some doubts regarding since this was an old issue but different call site.

discorrrdbomba
30 Mar, 2025, 13:51

sorry i am not pro user, so cannot paste the whole logs object here at once - see file (which is: console.log(client) ...regarding the client instantiated for the realtime connection)

discorrrdbomba
30 Mar, 2025, 13:53
discorrrdbomba
30 Mar, 2025, 13:58

i just restarted the whole app using a_session_<projectId> ...its doesnt make a change, still getting the same error a couple seconds after the realtime client is instantiated

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more