NumberFormatException occurred
Dear all,
While trying to use the CDS API I do not manage to get something playing. It looks like I am not getting past the REST layer ...
Using Python code as in the documentation :
With following debug Logger.info output :
The serviio returns me a HTTP 500 mentioning in its log :
I am out of ideas as what could go wrong or how to correct.
Any helping hand ?
Thanks,
Jos
While trying to use the CDS API I do not manage to get something playing. It looks like I am not getting past the REST layer ...
Using Python code as in the documentation :
- Code:
Values = \
{
'action' : 'play' ,
'objectId' : UrlComponents[5] ,
'parentId' : UrlComponents[6] ,
}
Values = json.dumps( Values )
Headers = \
{
'Content-Type' : 'application/json' ,
'Accept' : 'application/json' ,
}
Url = 'http://{}:{}/{}'.format( ServiioServer , ServiioPort , ServiioUrl )
Logger.info( "Url : {}".format( Url ) )
Logger.info( "Headers : {}".format( Headers ) )
Logger.info( "Values : {}".format( Values ) )
request = Request( Url , data=Values , headers = Headers )
response_body = urlopen(request).read()
print response_body
With following debug Logger.info output :
- Code:
2017-01-08 11:40:42,546 - __main__ - INFO - Components : ['', 'serviioproxy', 'cds', 'control', '67b0de4a-e7de-4ab9-7ad7-4a09e7b9ee57', 'A_F^FOL*R5$F2547$F2558$F2559$F2563$MI159818', 'A_F^FOL*R5$F2547$F2558$F2559$F2563']
2017-01-08 11:40:42,546 - __main__ - INFO - ServiioUrl : cds/control/67b0de4a-e7de-4ab9-7ad7-4a09e7b9ee57
2017-01-08 11:40:42,548 - __main__ - INFO - Url : http://192.168.1.100:23424/cds/control/67b0de4a-e7de-4ab9-7ad7-4a09e7b9ee57
2017-01-08 11:40:42,549 - __main__ - INFO - Headers : {'Content-Type': 'application/json', 'Accept': 'application/json'}
2017-01-08 11:40:42,549 - __main__ - INFO - Values : {"action": "play", "objectId": "A_F^FOL*R5$F2547$F2558$F2559$F2563$MI159818", "parentId": "A_F^FOL*R5$F2547$F2558$F2559$F2563"}
The serviio returns me a HTTP 500 mentioning in its log :
I am out of ideas as what could go wrong or how to correct.
Any helping hand ?
Thanks,
Jos
