Open Udhayshan91 opened 4 years ago
We are facing the following error when making a call to the getAll() method using the otxv2 sdk.
pulses = otx.getall() File "<user_dir>/env/lib/python3.6/site-packages/OTXv2.py", line 341, in getall return self.walkapi(self.create_url(SUBSCRIBED, **args), iter=iter, max_page=max_page, max_items=max_items) File "<user_dir>/env/lib/python3.6/site-packages/OTXv2.py", line 322, in walkapi return list(self.walkapi_iter(url, max_page=max_page, max_items=max_items, method=method, body=body)) File "<user_dir>/env/lib/python3.6/site-packages/OTXv2.py", line 303, in walkapi_iter data = self.get(next_page_url) File "<user_dir>/env/lib/python3.6/site-packages/OTXv2.py", line 148, in get return self.handle_response_errors(response).json() File "<user_dir>/env/lib/python3.6/site-packages/OTXv2.py", line 131, in handle_response_errors raise Exception("Unexpected http code: %r, response=%r", response.status_code, _response_json()) {{Exception: ('Unexpected http code: %r, response=%r', 504, {'internal_error': 'Unable to decode response json: Expecting value: line 1 column 1 (char 0)'} )}}
Version of OTXV2 we are using - 1.5.2
Please let me know if any other information is needed, thanks.
We are facing the following error when making a call to the getAll() method using the otxv2 sdk.
pulses = otx.getall() File "<user_dir>/env/lib/python3.6/site-packages/OTXv2.py", line 341, in getall return self.walkapi(self.create_url(SUBSCRIBED, **args), iter=iter, max_page=max_page, max_items=max_items) File "<user_dir>/env/lib/python3.6/site-packages/OTXv2.py", line 322, in walkapi return list(self.walkapi_iter(url, max_page=max_page, max_items=max_items, method=method, body=body)) File "<user_dir>/env/lib/python3.6/site-packages/OTXv2.py", line 303, in walkapi_iter data = self.get(next_page_url) File "<user_dir>/env/lib/python3.6/site-packages/OTXv2.py", line 148, in get return self.handle_response_errors(response).json() File "<user_dir>/env/lib/python3.6/site-packages/OTXv2.py", line 131, in handle_response_errors raise Exception("Unexpected http code: %r, response=%r", response.status_code, _response_json()) {{Exception: ('Unexpected http code: %r, response=%r', 504, {'internal_error': 'Unable to decode response json: Expecting value: line 1 column 1 (char 0)'} )}}
Version of OTXV2 we are using - 1.5.2
Please let me know if any other information is needed, thanks.