-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LoginButton does not work with SSR #9820
Comments
Not really, it works in 4.x, even though it logs that warning, it does not work in 5.3.0. |
Hmm it should have been fixed, but indeed it does't work for me either: https://huggingface.co/spaces/abidlabs/login-test Will take a look sorry about that @CISC! |
Ah I think the issue is SSR. If you explicitly disable SSR, then it works: https://huggingface.co/spaces/abidlabs/login-test-without-ssr |
@dawoodkhan82 would you be able to take a look at this? My hunch is that some of the Oauth routes here are being rerouted to the Node server when SSR is enabled instead of being handled by the Python server. |
Funny thing is I tried that, and it didn't work when I tested, but it works now, weird. However there's now a new issue when you try to use the token I get the following error:
|
Hmm can you share a minimal repro? |
I guess just calling Nevermind, I was requesting the wrong permissions, the token works now, however it's weird that |
Hey, thanks for reporting this. The issue is different and related to |
Great thanks @Wauplin! If the next version of |
@abidlabs you can but to be honest this fix is a very minor fix I'd say. The helper |
Ah sorry I didn't read through the whole thread, I thought it was blocking the use of |
Nope, just blocked in SSR mode, I'm fine with disabling it for now. |
Describe the bug
Even though it should have been fixed in #9659 it does not work for me in Chat Template Editor. I've tried both with and without SSR.
It logs the following warning, but it did that already in 4.x and it works fine there, so not sure if it's releated:
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: