Sub JobDone(Job As HttpJob)
ProgressDialogHide
If Job.Success Then
'Log("Main.Jobdone("&Job.JobName&"), true")
'Log("JobName: "&Job.JobName&" / Response from server: " & Job.GetString)
Else
ToastMessageShow("Error: " & Job.ErrorMessage, True)
log($"Error: ${Job.ErrorMessage} "$)
End If
Job.Release
B4X:Sub JobDone(Job As HttpJob) ProgressDialogHide If Job.Success Then 'Log("Main.Jobdone("&Job.JobName&"), true") 'Log("JobName: "&Job.JobName&" / Response from server: " & Job.GetString) Else ToastMessageShow("Error: " & Job.ErrorMessage, True) log($"Error: ${Job.ErrorMessage} "$) End If Job.Release
It's really tough to help, since in the end we really only have the information that you are getting a internal server error. We have no code that shows what you are trying to GET/POST/WhoKnowsWhatElse to a server, nor do we have any idea of what the server expects (server API) or what the code is on the server side that may crap out. We don't even know if you are dealing with a issue of duplicate records, since we don't even know if any updates work (you've not told us/shown us any working code/sample data vs non-working code/sample data).Can anyone help me please?
If the server just throws a generic 500 code without explaining exactly why, then you're out of luck. Unless you have access to the source and then you could modify the response of the serverThe question is how can i know that this server error is for duplicate entry and not for other reason. Do you know how to do it?
How are you getting these error messages/warnings? Where do they come from? Are these messages from the server?B4A log shows to me this issue, so i think that there is any way to detect it
i hope i´m not wrongHow are you getting these error messages/warnings? Where do they come from? Are these messages from the server?
My answer wasI obtain a Job.Success = false but a don't know how can i know that is not success for this reason![]()
Sub JobDone(Job As HttpJob)
ProgressDialogHide
If Job.Success Then
'Log("Main.Jobdone("&Job.JobName&"), true")
'Log("JobName: "&Job.JobName&" / Response from server: " & Job.GetString)
Else
ToastMessageShow("Error: " & Job.ErrorMessage, True)
log($"Error: ${Job.ErrorMessage} "$)
End If
Job.Release
Based on this it is such a result. I recognized the "Error: " in the resultWith this i obtain "Error: Internal Server Error"
I think code is not neccesary. I only try to insert a record. If this record is duplicate, server sais to me "Internal Server Error". The question is how can i know that this server error is for duplicate entry and not for other reason. Do you know how to do it?
B4A log shows to me this issue, so i think that there is any way to detect it. See attached imagen.
If the server just throws a generic 500 code without explaining exactly why, then you're out of luck. Unless you have access to the source and then you could modify the response of the server
How are you getting these error messages/warnings? Where do they come from? Are these messages from the server?
Like you mean.... Good luckI think code is irrelevant. Database table definition is irrelevant.
That's just it. Without code we don't know why you are getting these log entries in B4A. If you were doing local SQL inserts, that may explain it, but since you are doing a HTTP request to update data, it does not seem to make sense.Why B4A IDE can detect it?