Skip to content

[Bug]: Microsoft Azure Translator API test report 401 code #872

@raymondelf

Description

@raymondelf

Prerequisites|前提条件

  • I have checked the troubleshooting|我已经查看过故障排除
  • I have searched for similar issues and did not find any|我已经搜索过没有相同的问题

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|重现步骤

  1. Go to '' | 前往... 设置,翻译服务配置
  2. Click on '...' | 点击... microsoft azure, api & region, test测试
  3. Scroll down to '...' | 向下滚动到.. 弹窗提示
  4. See error | 看到错误如文所述

Expected behavior|预期行为

预期是测试成功

Screenshots|截图

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions