-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Post not working on WebGL compilation #233
Comments
Hi, I have the same problem, requesting a GET<Models.ResponseGallery> it returns "UNKNOWN ERROR" which doesn't tell anything usefull to search for solutions :-) It only fails when called from WEBGL, from unity editor or standalone/mobile it works fine
Request: { |
For anyone wondering if this is an issue with this asset, it is not. Would recommend closing this issue, as it doesn't seem specific to this asset or WebGL. |
Hello.
I have a post implementation wich works correctly from que unity editor, but when I build and run the project in WebGL, I receive a message : "Proyecto26.RequestException: Unknown Error" but I can't figure out wich is the reason.
Code fragment:
public static void SaveDatabase(){
RestClient.Post("https://my-project.firebaseio.com/users/.json", GameInfo.info)
.Then(response =>
Debug.Log("Información del jugador guardada exitosamente: " + JsonUtility.ToJson(response, true))
)
.Catch(error =>
{
Debug.LogError("Error guardando la información del jugador: "+ error.Message);
}
);
}
GameInfo.info is a DTO object with a serialization toString method wich converts the content to json.
The error logged from the catch:
Please, let me know wich extra information could be required to resolve this issue. Any help will be very appreciated.
The text was updated successfully, but these errors were encountered: