"message" : "Job ID is invalid."

Comments

6 comments

  • Avatar
    Patrick Walters
    For what its worth, I also see this. I submit the GET JOB and get "Job ID is invalid." many times, but ocassionally it will work and even when it does a subsequent GET JOBID/messages fails with "Job ID is invalid." Very odd API behavior.
  • Avatar
    Steve Dunlop
    Hi Patrick and Klaus,Did you ever find a solution to this? I am seeing the exact same behaviour.Thanks.
  • Avatar
    Patrick Walters
    Nope, I gave up... Seems to be no @Sumo API sumo logic presence in this forum either.
  • Avatar
    Mario Sanchez
    @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
  • Avatar
    Steve Dunlop
    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!
  • Avatar
    Mario Sanchez
    Thanks Steve. Already logged a request to improve the error code. Cheers!Mario

Please sign in to leave a comment.