Back

Realtime/Websocket - Can't connect from Postman/Arduino/ESP - ERROR "code":1008 - "missing channels"

  • 0
  • Cloud
martinc
10 Jan, 2025, 00:03
TL;DR
Developers having trouble connecting to Realtime/Websocket from Postman/Arduino/ESP are receiving an "ERROR code":1008 - "missing channels" message. The solution is to ensure that the channels are properly formatted in the URL string. In this case, the developer was able to resolve the issue by correctly sending the channel in the URL. Additionally, the developer confirms that the issue has been resolved and thanks the individual who provided assistance.
Kenny
10 Jan, 2025, 00:07

what are your headers?

Kenny
10 Jan, 2025, 00:10

I was able to connect just fine in postman doing this

wss://cloud.appwrite.io/v1/realtime?project=portfoliocms&channels%5B%5D=databases.portfolio.collections.project.documents

Kenny
10 Jan, 2025, 00:10

channels being the event you want to watch for changes on

martinc
10 Jan, 2025, 00:44

Hi Kenny

martinc
10 Jan, 2025, 00:44

Thank you for your help

martinc
10 Jan, 2025, 00:44

Yes, it seems that I'm not pointing the channels correctly

martinc
10 Jan, 2025, 00:44

The endpoint

martinc
10 Jan, 2025, 00:44

wss://cloud.appwrite.io/v1/realtime?project=portfoliocms&channels%5B%5D=databases.portfolio.collections.project.documents

martinc
10 Jan, 2025, 00:44

is also working

martinc
10 Jan, 2025, 00:44

on my end

martinc
10 Jan, 2025, 00:45

trying to apply the changes to make it fit in my example... so the name of the project is unique? should I use the name or the ID for the project? also, what does "5B%5D" stand for?

martinc
10 Jan, 2025, 00:45

Thanks again

martinc
10 Jan, 2025, 00:47

Oh - %5B%5D means []

martinc
10 Jan, 2025, 00:51

WORKING - YOU ARE AWESOME @Kenny thank you very much !!!

martinc
10 Jan, 2025, 00:52

The issue was that I was trying to send the channel like this

martinc
10 Jan, 2025, 00:52
martinc
10 Jan, 2025, 00:53
martinc
10 Jan, 2025, 00:53

YOURS WORKS BETTER

martinc
10 Jan, 2025, 00:53

It takes the channel and send it withing the URL

martinc
10 Jan, 2025, 00:53

Awesome bro thank you very much

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