I do the same I get:
TypeError: string indices must be integers, not str
On Tuesday, March 4, 2014 3:35:31 PM UTC+2, Avi A wrote:
Hi,
I'm getting on a controller a json response as expected, and I didn't find
a way how to parse it yet:
r = requests.post(url, data=json.dumps(payload),
On 4 Mar 2014, at 9:19 AM, Avi A aviavi...@gmail.com wrote:
I do the same I get:
TypeError: string indices must be integers, not str
Try catching that exception and printing the object you're working with.
It sounds like you're indexing the json string (r.content) rather than the
result
Yes, got it now, many thanks.
On Tuesday, March 4, 2014 7:42:28 PM UTC+2, Jonathan Lundell wrote:
On 4 Mar 2014, at 9:19 AM, Avi A avia...@gmail.com javascript: wrote:
I do the same I get:
TypeError: string indices must be integers, not str
Try catching that exception and printing the
3 matches
Mail list logo