Skip to content

Commit 942638a

Browse files
authored
Clarify Azure Translator resource region requirement (#6363)
Added note about setting the translator resource region to Global to avoid 401 errors. ## Description Had a bit of trouble with the lyrics plugin where the translator was not working. Creating a global resource instead of a regional one fixed the issue. Added a small note to the documentation so that people won't run into the same issue in the future. For a bit more info, you need to specify the region in the request headers if its a regional resource. This is not required for a global one.
2 parents 3b670cd + e7dfbc9 commit 942638a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/plugins/lyrics.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ We use Azure to optionally translate your lyrics. To set up the integration,
174174
follow these steps:
175175

176176
1. `Create a Translator resource`_ on Azure.
177+
Make sure the region of the translator resource is set to Global. You
178+
will get 401 unauthorized errors if not. The region of the resource group
179+
does not matter.
177180
2. `Obtain its API key`_.
178181
3. Add the API key to your configuration as ``translate.api_key``.
179182
4. Configure your target language using the ``translate.to_language`` option.

0 commit comments

Comments
 (0)