Skip to content

900504 : Invalid Gateway Environment #4669

@JanithaSampathBandara

Description

@JanithaSampathBandara

Description

Observing the following error response when invoking the Dev Portal REST API /wsdl endpoint to retrieve the API WSDL definition [1].

{
  "code": 900504,
  "message": "Invalid Gateway Environment",
  "description": "Gateway Environment with name '{Default=org.wso2.carbon.apimgt.api.model.Environment@...}' not found"
}

[1] https://apim.docs.wso2.com/en/latest/reference/product-apis/devportal-apis/devportal-v3/devportal-v3/#tag/APIs/operation/getWSDLOfAPI

Steps to Reproduce

  1. Publish an API.
  2. Invoke below Devportal REST API with above published API id to retrieve the WSDL definition of the API.

curl "https://localhost:9443/api/am/devportal/v3/apis/298fb1ae-ac9b-***-f5a29cbf6317/wsdl" -H "Authorization: Basic YWR***W4=" -kv

  1. Below error can be observed.
{
  "code": 900504,
  "message": "Invalid Gateway Environment",
  "description": "Gateway Environment with name '{Default=org.wso2.carbon.apimgt.api.model.Environment@10e94ba5}' not found",
  "moreInfo": "",
  "error": []
}

Version

APIM 4.6.0.8

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions