helldivers-2 / api

A community driven API for Helldivers 2
https://helldivers-2.github.io/api/
MIT License
219 stars 19 forks source link

[BUG]: Dispatches message content occasionally returns null #75

Open Stonemercy opened 6 months ago

Stonemercy commented 6 months ago

Link to faulty endpoint

api/v1/dispatches/

The name of your client/application

GWW Bot

Request information

As discussed on Discord this endpoint ocassionally returns null for the message content. Here is an example Hard to reproduce

Steps to reproduce

I honestly have no idea, possible ideas that I totally came up with are that an API call to the AH api failing will silently fail 😉

What is expected?

Not null

What is actually happening?

Null

System Info

Any additional comments?

This version of the API is self-hosted. My code has no issue when retrying shortly after (likely after another sync). Appreciate the work!

dealloc commented 6 months ago

as discussed in Discord, this is most likely the ArrowHead API occasionally returning null for messages.

While there's a retry mechanism for HTTP errors, it should also retry if the received messages contain null.