Comments (3)
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.
Could you send stacktrace of the error? Maybe it can help
You can turn it on in Project Settings > Player > Publishing Settings > Enable Exceptions.
from restclient.
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.
Would recommend closing this issue, as it doesn't seem specific to this asset or WebGL.
from restclient.
Related Issues (20)
- can not debug anything/not getting any debugs in console after adding this package HOT 1
- Update promises to be awaitable using `async`/`await` HOT 6
- Missing Meta files
- Empty response on RestClient GET, works with curl HOT 1
- Can this library be called by hololens2 HOT 4
- Can't send post request after Update to latest version HOT 2
- Lost reference to script in GET
- Can't use GET in hololens build
- Running multiple POST requests using Promise.ThenAll returns an IEnumerable of ResponseHelper objects, not all of them returned Data
- How can I add mode in proyecto26? HOT 1
- Can i use this asset to make my offline game multiplayer? HOT 1
- Default seralizer JsonUtility cannot serialize records HOT 1
- Why not async/await? HOT 2
- Using RestClient as a dependency in a unity package HOT 1
- Error while downloading file from Firebase Storage
- Specified cast is not valid. HOT 1
- Crashlytics reporting constant Fatal Exception: java.lang.Exception
- JsonUtility.ToJson as serialization method doesn't support
- Stupid question, but what is the recommended way to return a value from a method?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restclient.