API Script Error

alex_wyatt
New Contributor II

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 2

Bram_Cohen
New Contributor

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.

a03ec82294124f1688e43fa7ad9e2844

alex_wyatt
New Contributor II

@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!