Python Error

Home - Python Error

Jordan Maulana asked 3 years ago

I’ve tried to run register on python, then i got this error message :

File “”, line 8, in <module>
    headers={‘Content-Type’:’application/json’, ‘X-Mesosfer-AppId’:’y92HBufIzN’, ‘X-Mesosfer-AppKey’:’T1801V0ype8Jf2cBXl5KKPnaTTbE95yd’})
  File “/usr/lib/python3/dist-packages/requests/”, line 88, in post
    return request(‘post’, url, data=data, **kwargs)
  File “/usr/lib/python3/dist-packages/requests/”, line 44, in request
    return session.request(method=method, url=url, **kwargs)
TypeError: request() got an unexpected keyword argument ‘json’

1 Answers
Best Answer
Badrullami Staff answered 3 years ago

Hi Jordan,
I’ve checked github repository, the code is only work on Mac. The problem is data input format. I’ve updated the fix code on github repository. Please fetch and pull the latest code in branch master.

Jordan Maulana replied 3 years ago

works great! thanks

Your Answer