You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error Domain=NSURLErrorDomain Code=-1011 "There was a bad response from the server."
I am following the ReadMe.md and trying to init realtime connection, but only receive error as above. I checked the source code and look like there is no place to attach access_token to the connection. I believe that is the main reason of the error ( but not really sure yet)
To Reproduce
Create an iOS sample project with Xcode
Add package supabase realtime-swift
Follow their ReadMe.md to declare the client instance and try to init the connection.
Screenshots
System information
Version of supabase realtime-swift: 0.0.2
The text was updated successfully, but these errors were encountered:
I ran into this issue when I incorrectly forgot to add the realtime/v1/ to the endpoint parameter.
From the logs you posted, it seems that you put /auth/v1 rather than realtime/v1
does NOT work:
RealtimeClient(endpoint: "http://myprojectname.supabase.co/")
works:
RealtimeClient(endpoint: "http://myprojectname.supabase.co/realtime/v1")
Loop receiving NSURLErrorDomain error
Error Domain=NSURLErrorDomain Code=-1011 "There was a bad response from the server."
I am following the ReadMe.md and trying to init realtime connection, but only receive error as above. I checked the source code and look like there is no place to attach access_token to the connection. I believe that is the main reason of the error ( but not really sure yet)
To Reproduce
Screenshots
System information
The text was updated successfully, but these errors were encountered: