The Tutorial on Import and Publish your first API using Petstore fails every 2nd call

Neil McAlister 311 Reputation points
2025-06-24T16:05:59.6666667+00:00

Hi - your sample API for Petstore - used on importing tutorial https://learn.microsoft.com/en-us/azure/api-management/import-and-publish can be a frustrating experience.

I'm not sure who hosts https://petstore3.swagger.io but every 2nd request/call fails with

curl : {"code":500,"message":"There was an error processing your request. It has been logged (ID: 35c0e25944c59a85)"}

Try it yourself more than once - every 2nd call failing - it's frustrating to test in a sample tutorial because you think it's gone wrong and it's hard to prove your first import has worked

curl "https://petstore3.swagger.io/api/v3/store/inventory"

User's image

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,447 questions
0 comments No comments
{count} votes

Accepted answer
  1. Divyesh Govaerdhanan 6,235 Reputation points
    2025-06-24T17:24:21.4866667+00:00

    Hello,

    Welcome to Microsoft Q&A,

    petstore3.swagger.io is an open-source repository https://github.com/swagger-api/swagger-petstore

    And the issue is already reported https://github.com/swagger-api/swagger-petstore/issues/99.

    You can use a petstore mock server yourself (e.g., using Docker). That gives you a more reliable API surface. Or use a stable alternative sample.

    Please Upvote and accept the answer if it helps!!

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.