Azure IOT Central-REST API-无法为应用程序错误调用此API

问题描述 投票:0回答:1

我正在尝试探索Azure IOT Central rest api。IOT Central REST Ref

但是当我尝试调用任何api时,它抛出错误以下,

{
  "error": {
    "code": "InvalidRequest",
    "message": "This API cannot be called for the application demoiotcentral.azureiotcentral.com. If you contact support, please include the following information. Request ID: 8yb2u4iz, Time: Mon, 24 Feb 2020 12:53:21 GMT.",
    "requestId": "8yb2u4iz",
    "time": "Mon, 24 Feb 2020 12:53:21 GMT"
   }
}

这不是授权相关的问题,因为我收到400错误的请求错误。

请帮助我修复它。

azure-iot-hub azure-iot-sdk azure-iot-central
1个回答
0
投票
似乎您的IoTC应用程序已是旧版应用程序,请参见以下屏幕片段,其中

rk2018iotcentral是旧版应用程序。enter image description here

当我调用您的

demoiotcentral

应用程序时,显示Unauthenticated错误:enter image description here

您最近更改了吗?

© www.soinside.com 2019 - 2024. All rights reserved.