Octoprint error help

Iโ€™m getting this error in my Octoprint device:
errorjava.lang.IllegalArgumentException: No json exists for response on line 313 (method GetPrinterTempReturn)

Any ideas @mike10 ?
Also @sburke781 I see you faced this error message not too long ago.

Any help appreciated. Thanks!

From memory I think two possibilities are:

  • Your HTTP call returns an error, so the web service does not include any JSON in the response, like it would for a successful call. So you need to be checking the status of the response before attempting to parse the data, i.e. looking for a status of 200 vs something like a 501 or 503. This is more likely the issue I expect.
  • A less likely possibility could be the response is not JSON, i.e. another content type like XML, HTML, etc
1 Like

In my experience itโ€™s this one 99.9999% of the time

Me too, but I assumed it was just my poor error handling and limited experience.... :wink:

1 Like

@JustinL Make sure you printer is connected to octoprint. I put in catch for 409 return now when the printer is not connected.