JSON DEcode Error
Opened this issue · 0 comments
hi all,
i used patch and delete function of library, but many times i got error below, i try to solve problem but i did not recognise it, it seems belong to header parsing function or etc.
any solution to avoid it?
br
File "/usr/local/lib/python3.6/site-packages/phpipam_client/client.py", line 109, in delete
return self.query(path=path, method=DELETE, params=params)
File "/usr/local/lib/python3.6/site-packages/phpipam_client/client.py", line 88, in query
result = resp.json()
File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)