Azure / Azure/azure-rest-api-specs

IoTHub Dps API failed to parse error message when it failed to create iothub dps

Open
#10,225 0 comments 0 reactions 0 assignees View on GitHub
IoT Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

After tested, I found iothub dps api would fail to parse error message when it failed to create iothub dps.

Http request:
```
PUT https://management.azure.com/subscriptions/xx-xx-xx-xx/resourceGroups/acctestRG-iothubdps-test01/providers/Microsoft.Devices/provisioningServices/IotHubTF-DPS-test01

{
"location": "eastus2",
"properties": {
"iotHubs": []
},
"sku": {
"name": "F1",
"capacity": 1
},
"tags": {}
}
```

Error message:
![image](https://user-images.githubusercontent.com/19754191/88149923-4c140400-cc33-11ea-9455-4b61ad859ebd.png)

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating the IoT Hub DPS API specification and its create-resource error response definition, then compare it with the HTTP request and error shown in the issue. Done means the failed create request exposes the service error message instead of failing to parse it.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.