Bug? HTTP response different in B4i

Andrew (Digitwell)

Well-Known Member
Licensed User
In B4a,
I can make a HTTP call using HTTPJOB and if there is an error the full response is returned in job.errormessage
e.g.
{"code":"unverified_user","message":"Unverified User","data":{"status":404}}

however, if I make the same call in B4i
the error message is:
unknown error
so it is not possible to extract the exact issue.

Is it possible to update the response in B4i to contain the complete error message, as it does in B4A?

Or is there another way to get this response information using HTTPJOB.

Thanks

Andrew
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Is there a workaround for this at present.

I am using an API call that returns its errors in this way for an app which needs to go live soon.
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Hi Erel,

I have downloaded the update.

I can now get the HTTPResponse object. But the string is still empty. I know there is data there as the same call in B4A produces some data.

I can now see the Status Code which helps.

Cheers

Andrew
 
Top