Handle response message
See original GitHub issue...
https://groups.google.com/forum/#!topic/nativescript/71SOZAGwo_g
As I mentioned there, your plugin fits our needs in nearly all points. We just need to process our own Server-response in the NativeScript-App.
I analyzed the plugin code and the android-fileupload-service. The Java-code seems to pass the server response message and the response code.
intent.putExtra(STATUS, STATUS_COMPLETED);
intent.putExtra(SERVER_RESPONSE_CODE, responseCode);
intent.putExtra(SERVER_RESPONSE_MESSAGE, filteredMessage);
In the onCompleted-Event of your ProgressReceiver, you get the responseCode and the responseMessage, but you do not process this data.
...
Regards,
Felix
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:25 (3 by maintainers)
Top Results From Across the Web
Best Practices for REST API Error Handling - Baeldung
3.1. The simplest way we handle errors is to respond with an appropriate status code. Here are some common response codes: 400 Bad...
Read more >HTTP response status codes - MDN Web Docs - Mozilla
HTTP response status codes indicate whether a specific HTTP request has been successfully completed. Responses are grouped in five classes:
Read more >Best Practices for API Error Handling - Nordic APIs
Today, we're going to talk about exactly why error responses and handling approaches are so useful and important.
Read more >Handle errors in ASP.NET Core web APIs - Microsoft Learn
In this article. Developer Exception Page; Exception handler; Use exceptions to modify the response; Validation failure error response; Client ...
Read more >API Response error handling in the best way | by Hafiq Iqmal
A good error handling give additional information about the underlying fault, as well as lessen your time on debugging and also give user ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
`URLSessionDataTaskDidReceiveData(session, dataTask, data) { //console.log(“URLSessionDataTaskDidReceiveData”); // we have a response in the data…
}`
@Ericky14
task.on("responded", (e) => { let res = JSON.parse(e.data) })