Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
486 stars 315 forks source link

Issues when sending RAW body on Post Request - Receives a 500 #2325

Closed afonsofaisca closed 11 months ago

afonsofaisca commented 11 months ago

Every bug report should have precise description and reproduction steps; console traces or source code references are appreciated.

For assistance requests, contact Azure support or submit a post on Stack Overflow. We don't provide support through GitHub Issues. Feature requests can be raised on the Azure Feedback Forum.

Bug description

When hosting a POST endpoint where there is an example body pre-populated from the Azure portal, already pasted as example, on the "try-me" section, then when hit "Send", the window returns "Unable to complete the request" with a 500 internal server error. This is most likely a UI bug since on the test platform in Azure for that same API, the response with the example is returned with a success 200.

Reproduction steps

  1. Go to Developer Portal on a POST endpoint
  2. Click on Try Me
  3. Scroll down to Send, ensuring a RAW body is included (pre-populated from example).
  4. See error

NOTE: Pasted body is a geoJson: image

image

Expected behavior

The expected behavior was a success response as per test in the management portal shows: image

Is your portal managed or self-hosted?

Managed

Additional context

Stangely enough, when I delete the body completely, the response returns something different, which is an actual error message expected from the API when the body is not existent: image

malincrist commented 11 months ago

Hello @afonsofaisca , thanks for reaching out and for the details description! The issue you described was fixed, however it was not released in all the stages yet. Please give it a few more days to be deployed everywhere. Apologies for the inconveniences.