SpaceTradersAPI / api-docs

The API documentation for the SpaceTraders API
143 stars 35 forks source link

500 from /extract #70

Closed dpnetca closed 9 months ago

dpnetca commented 1 year ago

response says file an issue to help so I am filing an issue :)

POST to https://api.spacetraders.io/v2/my/ships/SIKAYN-D/extract

relevant section of my logging (filtered to show the http components) timestamps should be in UTC


2023-08-22 04:38:21 DEBUG    httpcore.connection[_trace.py:85](atrace) connect_tcp.started host='api.spacetraders.io' port=443 local_address=None timeout=5.0 socket_options=None
2023-08-22 04:38:21 DEBUG    httpcore.connection[_trace.py:85](atrace) connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7ff7913b94d0>
2023-08-22 04:38:21 DEBUG    httpcore.connection[_trace.py:85](atrace) start_tls.started ssl_context=<ssl.SSLContext object at 0x7ff793707bf0> server_hostname='api.spacetraders.io' timeout=5.0
2023-08-22 04:38:21 DEBUG    httpcore.connection[_trace.py:85](atrace) start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7ff7913b8210>
2023-08-22 04:38:21 DEBUG    httpcore.http11[_trace.py:85](atrace) send_request_headers.started request=<Request [b'POST']>
2023-08-22 04:38:21 DEBUG    httpcore.http11[_trace.py:85](atrace) send_request_headers.complete
2023-08-22 04:38:21 DEBUG    httpcore.http11[_trace.py:85](atrace) send_request_body.started request=<Request [b'POST']>
2023-08-22 04:38:21 DEBUG    httpcore.http11[_trace.py:85](atrace) send_request_body.complete
2023-08-22 04:38:21 DEBUG    httpcore.http11[_trace.py:85](atrace) receive_response_headers.started request=<Request [b'POST']>
2023-08-22 04:38:24 DEBUG    httpcore.http11[_trace.py:85](atrace) receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'x-powered-by', b'Express'), (b'access-control-allow-origin', b'*'), (b'access-control-expose-headers', b'Retry-After, X-RateLimit-Type, X-RateLimit-Limit-Burst, X-RateLimit-Limit-Per-Second, X-RateLimit-Remaining, X-RateLimit-Reset'), (b'retry-after', b'1'), (b'x-ratelimit-type', b'IP Address'), (b'x-ratelimit-limit-burst', b'10'), (b'x-ratelimit-limit-per-second', b'2'), (b'x-ratelimit-remaining', b'1'), (b'x-ratelimit-reset', b'2023-08-22T04:38:23.003Z'), (b'content-type', b'application/json; charset=utf-8'), (b'etag', b'W/"9f-HbG5+JfqBJBz7L32C03zLiY3WS8"'), (b'x-cloud-trace-context', b'5329f75db7d6bc059365a45e72221cf1'), (b'date', b'Tue, 22 Aug 2023 04:38:24 GMT'), (b'server', b'Google Frontend'), (b'Content-Length', b'159'), (b'via', b'1.1 google, 1.1 google'), (b'Alt-Svc', b'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000')])
2023-08-22 04:38:24 INFO     httpx[_client.py:1729](_send_single_request) HTTP Request: POST https://api.spacetraders.io/v2/my/ships/SIKAYN-D/extract "HTTP/1.1 500 Internal Server Error"
2023-08-22 04:38:24 DEBUG    httpcore.http11[_trace.py:85](atrace) receive_response_body.started request=<Request [b'POST']>
2023-08-22 04:38:24 DEBUG    httpcore.http11[_trace.py:85](atrace) receive_response_body.complete
2023-08-22 04:38:24 DEBUG    httpcore.http11[_trace.py:85](atrace) response_closed.started
2023-08-22 04:38:24 DEBUG    httpcore.http11[_trace.py:85](atrace) response_closed.complete
2023-08-22 04:38:24 DEBUG    SpaceTrader[client.py:112](_post) b'{"error":{"code":500,"message":"Something unexpected went wrong! If you want to help you can file an issue here: https://github.com/SpaceTradersAPI/api-docs"}}'
space-admiral commented 9 months ago

Thanks for reporting! This helps me look into issues that may be persistent, but it looks like this was a minor blip in the DB connection.