I am trying to use requests to post JSON data to a HTTP endpoint, but I get this weird errors now( I used it before with no problems).
Any troubleshooting is much appreciated.
The code:
req = requests.post(HTTP_ENDPOINT, data=json.dumps(data))
Output:
AttributeError: module 'requests' has no attribute 'post'
requests.pyand import sth. from there?importstatements you have?