realtime-swift
realtime-swift copied to clipboard
Error Domain=NSURLErrorDomain Code=-1011 "There was a bad response from the server."
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
- 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
I am having the same issue, were you able to figure this out?
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")