B4J Question http job response

ziomorgan

Active Member
Licensed User
Longtime User
Hi,
it is possible to read the response of the http job request even in case of error?
The dropbox authentication give a json response in case of error.
thanks
 

killiak

Member
Licensed User
Longtime User
I don't know if i understand you, but, if you ask with a If myJob.Success = False then you can manage a Non sucess Poststring

Another aproach is that you check if myJob.errorMessage but in this case you are checking for a 403,404, 500 error, etc...

Is that what are you trying?
Of course myJob is the HttpJob Variable

Cya!
 
Upvote 0

ziomorgan

Active Member
Licensed User
Longtime User
The full error response is printed in the logs.

You can modify HttpUtils2Service and add it to the ErrorMessage variable.

Ok, I have already modified the b4a version but where can i find the source code for b4j version ?

Thanks
 
Upvote 0
Top