Prerequisites|前提条件
Describe the bug|描述问题
I've registerd a new Azure account for translator API. I got my API and filled in anx reader Azure setup and filled the right region. While I click test, the reader program reported something went wrong as below:
Error : Exception : DioException [ bad response ]: This exception was thrown because the response has a status code of 401 and RequestOptions . validateStatus was configured to throw for this status code The status code of 401 has the following meaning :“ Client error the request contains bad syntax or cannot be fulfilled "
Read more about status codes at https :// developer . mozilla . org / en - US / docs / Web / HTTP / Status In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code
I tried these in my Win10 Pc and My android phone, got the same results.
To reproduce|重现步骤
- Go to '' | 前往... 设置,翻译服务配置
- Click on '...' | 点击... microsoft azure, api & region, test测试
- Scroll down to '...' | 向下滚动到.. 弹窗提示
- See error | 看到错误如文所述
Expected behavior|预期行为
预期是测试成功
Screenshots|截图
Platform (please complete the following information)|平台(请填写以下信息)
- Platform: | 平台:
[e.g. Android]
android
- OS: | 操作系统:
[e.g. Android13(MIUI14)]
android14
- AnxReader Version: | 安读版本:
[e.g. 1.2.0+2033]
1.14.0+6321
- Device: | 设备:
[e.g. Xiaomi 13]
Oneplus9R 一加9R
Additional context|其他信息
No response
Prerequisites|前提条件
Describe the bug|描述问题
I've registerd a new Azure account for translator API. I got my API and filled in anx reader Azure setup and filled the right region. While I click test, the reader program reported something went wrong as below:
Error : Exception : DioException [ bad response ]: This exception was thrown because the response has a status code of 401 and RequestOptions . validateStatus was configured to throw for this status code The status code of 401 has the following meaning :“ Client error the request contains bad syntax or cannot be fulfilled "
Read more about status codes at https :// developer . mozilla . org / en - US / docs / Web / HTTP / Status In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code
I tried these in my Win10 Pc and My android phone, got the same results.
To reproduce|重现步骤
Expected behavior|预期行为
预期是测试成功
Screenshots|截图
Platform (please complete the following information)|平台(请填写以下信息)
[e.g. Android]
android
[e.g. Android13(MIUI14)]
android14
[e.g. 1.2.0+2033]
1.14.0+6321
[e.g. Xiaomi 13]
Oneplus9R 一加9R
Additional context|其他信息
No response