-
-
Notifications
You must be signed in to change notification settings - Fork 175
Using RestClient within a task? #154
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
Comments
Can you attach a repo to reproduce that issue? |
@jdnichollsc Added one here, sorry for the delay: https://github.com/heath3n/RestClientTaskErrorRepro. There should be a scene I've since discovered Firebase has an extension method |
Thanks for let me know mate! |
I'm using Firebase Auth to get an auth token; once I have it I need to set it as a header so I can make requests to my backend server. However because I'm putting
RestClient
within a task, I get the errorInternal_CreateGameObject can only be called from the main thread.
What is the correct approach here?
The text was updated successfully, but these errors were encountered: