Api throwing 404 errors after mocking enabled.

ANKIT GHENGE 20 Reputation points
2024-10-30T12:49:19.8666667+00:00

Hello,

I have enabled the mocking for the APIs like mentioned below but getting 404 error for the request

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

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 28,086 Reputation points
    2024-11-12T08:47:16.3933333+00:00

    @ANKIT GHENGE Thanks for reaching out. It sounds like you're encountering a common issue with API mocking. When APIs return a 404 error after enabling mocking, it usually means that the requested resource is not found.

    If you provide more details about your specific setup effective policy and the exact error message you're seeing, I can help you troubleshoot further. Have you checked the mock configuration is setup for the operation/API thats being requested?

    User's image

    https://zcusa.951200.xyz/en-us/azure/api-management/mock-response-policy

    do let me know incase of further queries, I would be happy to assist you.

    0 comments No comments

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.