Giter Club home page Giter Club logo

Comments (3)

HtDreams avatar HtDreams commented on July 18, 2024

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

[Serializable]
public class Media 
{
    public int id;
    public int story_id;
    public string stage;
    public string title;
    public string media_type;
    public string media_file;
    public bool force_page;
    public DateTime created;
    public DateTime modified;
}
[Serializable]
public class ResponseGallery : Response
{
    public Media[] data;
}

Request: {
"Uri": "https://SERVERADDRESSHIDDEN/api/stories/10/gallery/",
"Method": "GET",
"Body": {
"stage": "",
"text": ""
},
"BodyString": null,
"BodyRaw": null,
"Timeout": null,
"ContentType": null,
"Retries": 0,
"RetrySecondsDelay": 0.0,
"RetryCallbackOnlyOnNetworkErrors": true,
"RetryCallback": null,
"ProgressCallback": null,
"EnableDebug": true,
"UseHttpContinue": true,
"RedirectLimit": null,
"IgnoreHttpException": false,
"FormData": null,
"SimpleForm": null,
"FormSections": null,
"CertificateHandler": null,
"UploadHandler": null,
"DownloadHandler": null,
"Headers": [
{
"Key": "Authorization",
"Value": "Bearer lWnJvilJmJUuru9gzlaOznnDAuFoze"
}
],
"Params": [],
"ParseResponseBody": true,
"UploadProgress": 0.0,
"UploadedBytes": 0,
"DownloadProgress": 0.0,
"DownloadedBytes": 0,
"IsAborted": false,
"DefaultContentType": true
}

from restclient.

NullOne01 avatar NullOne01 commented on July 18, 2024

Could you send stacktrace of the error? Maybe it can help

You can turn it on in Project Settings > Player > Publishing Settings > Enable Exceptions.
image

from restclient.

MeltdownInteractive avatar MeltdownInteractive commented on July 18, 2024

For anyone wondering if this is an issue with this asset, it is not.
I created a new project in Unity 2021.3.27f1, using RestClient v2.6.2, and could run the GET and POST commands from the Demo scene without any issues.

Get Test
image

Post Test
image

Would recommend closing this issue, as it doesn't seem specific to this asset or WebGL.

from restclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.