root@f453f0e:/usr/src/app# curl -v 127.0.0.1:48485
* Rebuilt URL to: 127.0.0.1:48485/
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* connect to 127.0.0.1 port 48485 failed: Connection refused
* Failed to connect to 127.0.0.1 port 48485: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 127.0.0.1 port 48485: Connection refused
Python code:
rebooturl = str(os.environ.get('BALENA_SUPERVISOR_ADDRESS')) + '/v1/reboot?apikey=' + str(os.environ.get('BALENA_SUPERVISOR_API_KEY'))
os.system('curl -X POST --header "Content-Type:application/json" "' + rebooturl + '"')
Has anyone seen this behaviour before?