Skip to content
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

Authentication timeout on WebGL is fixed at 15 seconds #103

Closed
DaveOak opened this issue Jan 25, 2021 · 5 comments
Closed

Authentication timeout on WebGL is fixed at 15 seconds #103

DaveOak opened this issue Jan 25, 2021 · 5 comments

Comments

@DaveOak
Copy link

DaveOak commented Jan 25, 2021

Changing the timeout in config.yml works for Android and iOS builds but makes no difference to WebGL builds that use UnityWebRequestAdapter. The timeout appears to be 15 seconds.

For context, a Facebook player with > 1000 playing friends causes a long delay (approx 17 seconds) on authentication while the friends list is imported.

@lugehorsam
Copy link
Contributor

@DaveOak Thanks for filing this issue. This is now fixed in this patch: 4d4240c

You can use it now using the instructions in the README or wait for a Unity Asset Store release if you're using our package that way, though the former approach is recommended.

@DaveOak
Copy link
Author

DaveOak commented Feb 2, 2021 via email

@lugehorsam
Copy link
Contributor

lugehorsam commented Feb 2, 2021

Hey @DaveOak, it looks like you imported it correctly. Is the hanging still only just for WebGL builds? Could you share the piece of code that hangs?

@lugehorsam lugehorsam reopened this Feb 2, 2021
@DaveOak
Copy link
Author

DaveOak commented Feb 3, 2021

Hi Luke, thanks for confirming my approach was OK. The hanging problem turned out to be a bug in my own code. The timeout now works correctly when I set _client.Timeout in my code before authenticating.

@DaveOak DaveOak closed this as completed Feb 3, 2021
@lugehorsam
Copy link
Contributor

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants