I'm getting an intermittent errors (`urllib.error.HTTPError: HTTP Error 500: Internal Server Error` & `pyactiveresource.connection.ServerError: Internal Server`), when trying to save a new order. I'm using `ShopifyAPI==3.1.0`
Here is the traceback that I'm seeing in the logs:
Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/pyactiveresource/connection.py", line 286, in _open http_response = self._handle_error(self._urlopen(request)) File "/usr/local/lib/python3.6/dist-packages/pyactiveresource/connection.py", line 316, in _urlopen return urllib.request.urlopen(request, timeout=self.timeout) File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.6/urllib/request.py", line 532, in open response = meth(req, response) File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.6/urllib/request.py", line 570, in error return self._call_chain(*args) File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(*args) File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 500: Internal Server Error During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/var/www/html/shopifyapp/util.py", line 252, in create_shopify_order order.save() File "/usr/local/lib/python3.6/dist-packages/pyactiveresource/activeresource.py", line 824, in save data=self.encode()) File "/usr/local/lib/python3.6/dist-packages/pyactiveresource/connection.py", line 364, in post return self._open('POST', path, headers=headers, data=data) File "/usr/local/lib/python3.6/dist-packages/shopify/base.py", line 23, in _open self.response = super(ShopifyConnection, self)._open(*args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/pyactiveresource/connection.py", line 288, in _open http_response = self._handle_error(err) File "/usr/local/lib/python3.6/dist-packages/pyactiveresource/connection.py", line 418, in _handle_error raise ServerError(err) pyactiveresource.connection.ServerError: Internal Server Error
When I retry that I end up with double orders.
Hey, @scottydont would you please give me an update on this issue?
@scottydont wrote:Hey @radi_
I'll need a request ID to dig deeper - are you able to log some details?
I don't think I have a request ID. Could you give me an example of what might look like?
It's an internal server error. I wouldn't have much more info than the error tracebacks I posted.
Subject | Author | Latest Post |
---|---|---|
Subject | Author | Posted |
---|---|---|
45m ago | ||
an hour ago | ||
an hour ago | ||
2 hours ago | ||
5 hours ago |
User | Count |
---|---|
259 | |
165 | |
137 | |
67 | |
39 |