"asApp" requestJira returning some fields in Chinese?

When executing a requestJira api call with the asApp method, some values such as status.statusCategory.name, issuetype.description, and issuetype.name are coming back in Chinese. When using asUser these are returned in English. Should this be expected? Is there some way to define the locale of the app when making an 'asApp' request?

1 Like

Adding the following to the header seems to achieve this at the moment. Would still love if someone could confirm that this is the appropriate way to handle it, or if there is a configuration in the App somewhere that I’m missing.

'X-Force-Accept-Language': 'true',
'Accept-Language': 'en'
1 Like

Hi @DavidPezet1, recently we moved @forge/api to use undici as the client backing our HTTP requests. undici sends an accept-language: '*' header by default and some Jira APIs treat it weirdly by translating text. I am currently following this up and will let you know once it’s resolved.

In the meantime, I would say that the workaround you have is the correct way to go about it.

5 Likes

@BoZhang Thank you for the quick response!

Hi @DavidPezet1 , just wanted to let you know that we’ve pushed a fix for this bug which was released today, you should be able to remove the custom headers now.

4 Likes

Confirmed! Thanks for the quick fix!