Skip to main content
Question

API Script Error

  • April 13, 2017
  • 2 replies
  • 7 views

Forum|alt.badge.img+4

I tried to run this script, but I'm getting this error

root@casper:/home/casperadmin/Scripts# python updateDeviceInventoryBySmartGroup.py
Getting device list from the JSS...
Exception decoding JSON: No JSON object could be decoded

Any idea what's going wrong? I know nothing of the programming behind all this. It's on a Debian 8 VM. If it makes a difference, I left the "jss_path" variable blank, because our JSS URL doesn't have anything after the port

Thanks!

2 replies

Forum|alt.badge.img+9
  • Employee
  • 1 reply
  • April 14, 2017

Hey @alex.wyatt nice to see someone using the script!
Try confirming that the jss_smart_group_id variable at the top matches a valid group in the server.


Forum|alt.badge.img+4
  • Author
  • Contributor
  • 17 replies
  • April 18, 2017

@Bram.Cohen in addition to the email reply I just sent you, I just tried the URL you've put in here, and it works fine. Should have mentioned that in the email!