Skip to content

Post not working on WebGL compilation #233

@MagusDrk

Description

@MagusDrk

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:
image

Please, let me know wich extra information could be required to resolve this issue. Any help will be very appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions