hi
I am slightly confused here as you mention that the second piece of code is posting a request and yet you are using the requests GET function. If you are looking to post that data variable object in the second piece of code then the parameters for that function are requests.post(url, data, json), I have not looked at the requests package specifically to see what they appertain to.
At the moment you are trying to decode the data expected from the GET which I will be not there i.e. None and hence the char(0),the variable r in the post will actually contain the response code I expect something like r: <Response [500]> for example if the whole thing failed and consequently you can not json that either so just chane it for a print® if you want to test the response result
I am slightly confused here as you mention that the second piece of code is posting a request and yet you are using the requests GET function. If you are looking to post that data variable object in the second piece of code then the parameters for that function are requests.post(url, data, json), I have not looked at the requests package specifically to see what they appertain to.
At the moment you are trying to decode the data expected from the GET which I will be not there i.e. None and hence the char(0),the variable r in the post will actually contain the response code I expect something like r: <Response [500]> for example if the whole thing failed and consequently you can not json that either so just chane it for a print® if you want to test the response result
Regards
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”