Closed hasnainhakim closed 1 year ago
Hi Please run:
res = self.session.post(url=self.url, data=json.dumps(data), headers=self.h, verify=False) try: js = res.json() token = js['token'] self.cookie['reese84'] = token print(fg + ' (success)') return token except ValueError: print("Response content is not valid JSON")
I am getting this :
[*] Fetching TokenResponse content is not valid JSON
We can't help you debug general Python code, this issue tracker is only for defects in the Requests library. I recommend trying stackoverflow.com/ or the Python Discord.
Hi Please run:
I am getting this :
[*] Fetching TokenResponse content is not valid JSON