API常见错误和解决办法

更新时间:2020-03-13 10:13:55

HTTP CODE

400

HTTP code 400 Bad Request

  • 检查appkey是否存在且合法;

  • 请求的 HTTP Schema 不正确:

    • API unsupport the channel: HTTP,更换成为 HTTPS,发起 API 调用。
    • API unsupport the channel: HTTPS,更换成为 HTTP,发起 API 调用。
  • 检查是否是阿里云网关报错【阿里云网关错误码列表】

    • Invalid Signature, Server StringToSign:%s
    • Nonce Used
    • API Not Found
    • 等等。

      401

  • 通过api-performance.aliplus.com,api.link.aliyun.com、api-iot.ap-southeast-1.aliyuncs.com或者api-iot.eu-central-1.aliyuncs.com的访问,通常是登陆校验iotToken失败;

  • 如通过统一接入等直接调用iotx-api-gateway,请确认APPSIGN签名正确或者accessToken参数正确;

  • 下游业务返回了401;

403

  • 通常appKey是没有调用该api权限;

  • 下游业务返回了403;

results matching ""

    No results matching ""