Open rvamsikrishna opened 4 years ago
It did look to me like your Pusher.init('...', PusherOptions(auth: PusherAuth('url', headers: {}), cluster: 'ap3'), enableLogging: true)
setting is not quite right at the moment.
As the following error indicates that your current config does not have a proper url
value
D/PusherPlugin( 8418): onError : java.io.FileNotFoundException: https://<my-url>/broadcasting/auth
@jinseokoh So its a problem with setting a right auth endpoint?
@rvamsikrishna As I haven't experienced such error with this package, probably your current private auth setting is not correct. Check out the example code in the following PR. Hope you find it useful.
https://github.com/kakajansh/echo/pull/24
W/System.err(20778): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) W/System.err(20778): at java.lang.Thread.run(Thread.java:919) W/System.err(20778): Caused by: java.io.FileNotFoundException: https://meroswasthya.org/broadcasting/auth W/System.err(20778): at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:259) W/System.err(20778): at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:211) W/System.err(20778): at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:30) W/System.err(20778): at com.pusher.client.util.HttpAuthorizer.authorize(HttpAuthorizer.java:128) W/System.err(20778): ... 7 more I/flutter (20778): Error: java.io.FileNotFoundException: https://ysite.org/broadcasting/auth Channel error
I have similar issue . Is your issue fixed? Public channel works fine something is not correct with authorization
Hello, thank you very much for this package. I am successfully able to subscribe to the public channels and receive events that are sent from the pusher debug console. The exception is thrown when I am trying to subscribe to private channels. I have in the backend written in laravel. I'm not a back end developer so I could not debug if the problem is on the back end.
I pass the required auth endpoint and also the request headers to
PusherAuth
. When I try to connect to the pusher cancel and subscribe to a private channel I get this file not found exception which points to the auth endpoint URL as belowI cannot add the real URL above in the logs so added.
The laravel code does not have any auth endpoint set, so according to the laravel docs the default is
/broadcasting/auth
. Any help is appreciated.