on 05-19-2016 9:59 AM
Hello,
I am developing an hybrid application using Kapsel plugins (Logon and Odata-offline plugins) but I have a doubt with the second plugin specified, and the question is, how to manage error messages based in HTTP status code correctly? Because I am receiving a error code messages different to messages implemented from the Gateway, and it is filtering our custom messages.
For example and without explain technical aspects, I am receiving these messages (in different scenarios) from the SMP like:
[Log] An error occurred or user cancelled action: {"message":"[-10107] The update entity request failed because the provided entity does not exist."} (app.js, line 1)
[Log] An error occurred or user cancelled action: {"message":"[-10104] An error occurred while committing a database transaction. Reason: 0 (OK)"} (app.js, line 1)
[-10047] An error occurred while setting a parameter with an BINARY value in a prepared statement
I am not backend developer, and I do not know in depth the meaning of these messages..
Any help about this?
Thank you in advance.
Óscar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The -10107 error is indicating that when the PUT/PATCH/DELETE request was sent to the OData backend, it responded with an HTTP_NOT_FOUND or HTTP_NO_CONTENT. This means that the backend is indicating that it has never heard of the entity you are trying to modify/delete.
Without more details, its hard to diagnose the -10104 error off the top of my head. As it says, its getting an error trying to commit to the database, but without more context, its hard to know why.
Similarly, the -10047 error is indicating that it was unable to bind a user-supplied BINARY value as a parameter in the prepared statement it is constructing for use with the local UltraLite database. Are you on a recent SP of the SDK?
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.