"message" : "Job ID is invalid."
I submit a search job and get back the job ID in the location URL as indicated in the response. For example, I get something like this back: https://api.us2.sumologic.com/api/v1/search/jobs/566671A4A7BC1458 When I immediately query that response back details of the result, I get { "status" : 404, "id" : "819OC-CHUM5-34PDW", "code" : "searchjob.jobid.invalid", "message" : "Job ID is invalid." } This is happening with all of my search requests. What am I missing now?
-
@Klaus Nji, @Patrick Walters, and @Steve Dunlop, My colleague @Frank Reno pointed out that cookies are required in order for subsequent requests to work. Check out: http://help.sumologic.com/APIs/02Search_Job_API/About_the_Search_Job_API In particular: "Cookies must be enabled for subsequent requests to the search job. A 404 status (Page Not Found) on a follow-up request indicates that a cookie did not accompany the request." Let me know if this resolves your issue. Cheers, Mario -
Hi Mario, many thanks for the answer. Adding cookie handling fixed the issue and it now works!Please note that the error message is "Job ID is invalid" ... nothing to do with cookies!! Please can you update the documentation (or the API error code) so that others don't have to waste time on this.Thanks!
Please sign in to leave a comment.
Comments
6 comments