Closed andrewkrug closed 7 years ago
Request code needs a bit of exception handling to fallback to s3 storage if it can't get to the API
{ "stackTrace": [ [ "/var/task/main.py", 163, "lambda_handler", "api_call = store_results(res)" ], [ "/var/task/main.py", 150, "store_results", "response = urllib2.urlopen(req)" ], [ "/usr/lib64/python2.7/urllib2.py", 154, "urlopen", "return opener.open(url, data, timeout)" ], [ "/usr/lib64/python2.7/urllib2.py", 435, "open", "response = meth(req, response)" ], [ "/usr/lib64/python2.7/urllib2.py", 548, "http_response", "'http', request, response, code, msg, hdrs)" ], [ "/usr/lib64/python2.7/urllib2.py", 473, "error", "return self._call_chain(args)" ], [ "/usr/lib64/python2.7/urllib2.py", 407, "_call_chain", "result = func(args)" ], [ "/usr/lib64/python2.7/urllib2.py", 556, "http_error_default", "raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)" ] ], "errorType": "HTTPError", "errorMessage": "HTTP Error 504: G
Request code needs a bit of exception handling to fallback to s3 storage if it can't get to the API
{ "stackTrace": [ [ "/var/task/main.py", 163, "lambda_handler", "api_call = store_results(res)" ], [ "/var/task/main.py", 150, "store_results", "response = urllib2.urlopen(req)" ], [ "/usr/lib64/python2.7/urllib2.py", 154, "urlopen", "return opener.open(url, data, timeout)" ], [ "/usr/lib64/python2.7/urllib2.py", 435, "open", "response = meth(req, response)" ], [ "/usr/lib64/python2.7/urllib2.py", 548, "http_response", "'http', request, response, code, msg, hdrs)" ], [ "/usr/lib64/python2.7/urllib2.py", 473, "error", "return self._call_chain(args)" ], [ "/usr/lib64/python2.7/urllib2.py", 407, "_call_chain", "result = func(args)" ], [ "/usr/lib64/python2.7/urllib2.py", 556, "http_error_default", "raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)" ] ], "errorType": "HTTPError", "errorMessage": "HTTP Error 504: G