Developer Forum [ All Topics | New Topic ]

Thread: 'error_code':1001 (invalid format) JSON post python

I am trying to hit the price sheet info endpoint in my terminal (mac)
My code:
import json
import requests
url = ''
my_data = {"request": {"header": {"username": "my_username", "password": "my_password"}, "body": {}}}
r =, data = json.dumps(my_data))

My response says format error, but I copied my dict directly from the rapaport api. Any ideas?

>> add a comment
04/07/2016 01:49

2 Replies:

I tested this on my computer and couldnt reproduce your problem.
Please provide some more details so I can try helping further.


>> add a comment
4/13/2016 4:16:00 AM
I worked on a python API which did the trick: still not sure what the original problem was

>> add a comment
4/15/2016 3:17:00 PM