Skip to content

Mock endpoints not working when used in API products #3436

Open
wso2/carbon-apimgt
#13027
@Manasha11

Description

@Manasha11

Description

Below error is observed when using APIs with mock implementation endpoints in API Products.

[2024-12-09 16:50:07,732] WARN - ConnectCallback Connection refused or failed for : localhost/127.0.0.1:80
[2024-12-09 16:50:07,735] WARN - EndpointContext Endpoint : TestProduct--v1.0.0--9f1c985c-d8b5-4579-af77-43195a27bd0c_APIproductionEndpoint with address http://localhost will be marked SUSPENDED as it failed
[2024-12-09 16:50:07,735] WARN - EndpointContext Suspending endpoint : TestProduct--v1.0.0--9f1c985c-d8b5-4579-af77-43195a27bd0c_APIproductionEndpoint with address http://localhost - last suspend duration was : 30000ms and current suspend duration is : 30000ms - Next retry after : Mon Dec 09 16:50:37 BRT 2024
[2024-12-09 16:50:07,735] INFO - LogMediator {api:TestProduct:v1.0.0} STATUS = Executing default 'fault' sequence, ERROR_CODE = 101503, ERROR_MESSAGE = Error connecting to the back end

Steps to Reproduce

  • Create an API with a mock implementation endpoint
  • Test and confirm that the API is working as expected
  • Add a resource from the new API and create an API Product
  • Invoke the resource in API Product

Version

4.1.0

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions