Python Error

Home - Python Error

Jordan Maulana asked 8 months ago

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

File “regis.py”, line 8, in <module>
    headers={‘Content-Type’:’application/json’, ‘X-Mesosfer-AppId’:’y92HBufIzN’, ‘X-Mesosfer-AppKey’:’T1801V0ype8Jf2cBXl5KKPnaTTbE95yd’})
  File “/usr/lib/python3/dist-packages/requests/api.py”, line 88, in post
    return request(‘post’, url, data=data, **kwargs)
  File “/usr/lib/python3/dist-packages/requests/api.py”, 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 8 months 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.
Thanks. 

Jordan Maulana replied 8 months ago

works great! thanks

Your Answer