Android Question JobDone Success set to False - ENOENT

rbtcotton

Member
Licensed User
Longtime User
My question is in regard to Json API that returns a Job success as false. Will the Job.GetString be set to null at that time?

Its interesting that the debug log has a entry for the return API data string without a log statement in the code, not sure why or how this gets recorded. The Json return string log entry is before or as the JobDone sub is call as I have a log statement on the first line in the Job Done sub (see log report).

As I try to process the the Job.GetString to pickup the Json API result, a error is trip for ENOENT. I am dim the httpjob as it is called. Any help would be appreciated.


Log report
{"flag":false,"message":"Data not found.","code":404}
JobName = Job6 Job Success =false
 

DonManfred

Expert
Licensed User
Longtime User
sounds like you are requesting an page which does not exists (404 = not found)

What is the url you want to get data from?

Edit: The page is answering... But it maybe does not find the resource you are accessing
 
Upvote 0

rbtcotton

Member
Licensed User
Longtime User
Thanks for the responses. The url is part of a company web server. The url is correct because if the Job success is true, the app will process the response without an error.

Also I can see the response in papertrail log of the server

Papertrail Log
  • Jan 18 09:09:13 <14>1 production.INFO: Response [404]: {"flag":false,"message":"Data not found.","code":404} []
  • Jan 18 09:09:13 production.INFO: Response [404]: {"flag":false,"message":"Data not found.","code":404} []

Am I correct that if the Job.success is false then the Job.Getstring will be null?
 
Upvote 0
Top