IHTSDO / snowstorm

Scalable SNOMED CT Terminology Server using Elasticsearch
Other
209 stars 84 forks source link

Error for local language code sent by browsers in Latin America #611

Open alopezo opened 4 months ago

alopezo commented 4 months ago

image This is the result of an API call using the browser with local language code in the headers.

kaicode commented 4 months ago

An example Accept-Language header from a device with default configuration in Uruguay

Screenshot 2024-07-30 at 13 43 04

The language code uses a different format that currently causes an error when making requests to the Snowstorm SNOMED API. The FHIR API seems to be okay.

rorydavidson commented 4 months ago

@kaicode & @alopezo, nothing has changed in the code here for a long time... is this new, linked to a browser change, etc.?

kaicode commented 4 months ago

I don't think it's a new bug.

kaicode commented 4 months ago

Apparently this "419" is used as a regional dialect rather than using any specific dialect like es-ar (Argentina) or es-cl (Chile). It's a legitimate code that is commonly preconfigured on devices in this region.

kaicode commented 3 months ago

Raised internal ticket INFRA-13383 for this.