【问题标题】:500 Internal Server Error POST request on Azure using Postman使用 Postman 在 Azure 上发出 500 内部服务器错误 POST 请求
【发布时间】:2018-12-28 08:38:35
【问题描述】:

我正在尝试使用邮递员向 Azure 的 IoTHub 发送 POST 请求。我的帖子网址是:

https://myhubname.azure-devices.net/messages/deviceBound?api-version=2018-06-30。在我的Params 我有:

key: api 版本,value: 2018-06-30。

在我的Headers 我有:

key: 授权,value:“SAS 令牌”

这是我在Body 中收到的错误:

  {
    "Message": "ErrorCode:ServerError;InternalServerError",
    "ExceptionMessage": "Tracking ID:0fe2705819fb432383f0a011879cd453-G:2- 
     TimeStamp:12/27/2018 21:07:34"
  }

我做错了什么?

【问题讨论】:

    标签: azure http post postman


    【解决方案1】:

    看起来可能是语法问题,您的呼叫缺少设备 ID。

    https://fully-qualified-iothubname.azure-devices.net/devices/{id}/messages/deviceBound?api-version=2018-06-30

    https://docs.microsoft.com/en-us/rest/api/iothub/device/senddeviceevent

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多