Closed Kejax closed 5 months ago
I just checked, and now it's responding null
for the French language
It would appear there's something iffy going on in the synchronization process.
Languages are configured here, where the key (for example de
is linked to a language code (de-DE
).
I suspect the API doesn't always properly respond (maybe because it synchronizes multiple languages concurrently and that might be a bit too fast at once) with the correct languages and when it fails the translation will not be present in the sync.
I'll see tonight if I can confirm my suspicions and provide a fix. Currently though it seems the problem 'resolves' itself after 5 minutes (aka the next sync)
I somehow missed the config part… …Anyways. Maybe you could check if the value is null after caching the data, if so refetch the message
With the way the API is currently set up it's rather hard to fall back to cache when rebuilding, will have to think of a proper way to deal with this
I rather meant:
-> Fetch data: -> If "lang" is null: -> Fetch until lang is not null -> to Cache
Very out of context, but what do you think about an "Helldivers Community Developers Discord (HCDD)" ?
I rather meant:
-> Fetch data: -> If "lang" is null: -> Fetch until lang is not null -> to Cache
Ah, there's actually a retry mechanism in place but since it's not reliable in responding null
it's a little hard debugging why it's not kicking in.
Very out of context, but what do you think about an "Helldivers Community Developers Discord (HCDD)" ?
That would definitely help with people who want to get started with the API as well as provide a central point of communication for developers to gather knowledge and information! That being said I have no experience (nor do I desire to) moderating and maintaining such a public discord. If you set one up I'd love to join though
There is a Discord I found: https://discord.gg/SDE66X9S
After the addition of different languages to the API, it seems that it‘s only responding with a NULL value for the german translation of the string. I‘m not familiar with Elixir, but from what I understand, you iterate through the different languages. The languages are defined in your env, so please check if
de
is set tode-DE