infinite-industries / infinite

MIT License
5 stars 3 forks source link

Recurring 500 in prod logs #481

Closed chriswininger closed 7 months ago

chriswininger commented 7 months ago

api-server_1 | Handled Exception (/v1/events/8b3412a3-4685-4ac3-959f-3206d3aa9711?embed=Venue, GET): "unknown reason" api-server_1 | error: 2024-02-16T01:27:07.127Z [TEST:api-server:65] -- Cannot read properties of null (reading 'date_times') api-server_1 | info: 2024-02-16T01:27:07.127Z [TEST:api-server:65] -- /v1/events/8b3412a3-4685-4ac3-959f-3206d3aa9711?embed=Venue 500 (1035 ms)

chriswininger commented 7 months ago

It turns out this was an event we had deleted. It should have been returning a 404 rather than a 500. There was a small logic bug in this endpoint. Pr with fix and tests coming shortly