api icon indicating copy to clipboard operation
api copied to clipboard

[BUG]: Dispatches message content occasionally returns null

Open Stonemercy opened this issue 1 year ago • 1 comments

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!

Stonemercy avatar Apr 16 '24 16:04 Stonemercy

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.

dealloc avatar Apr 16 '24 17:04 dealloc