ballerina-platform / ballerina-central

Ballerina Central Website
Apache License 2.0
104 stars 1 forks source link

Invalid error message when a tool is not found in the central #227

Open anupama-pathirage opened 1 month ago

anupama-pathirage commented 1 month ago

@gayaldassanayake cloned issue wso2-enterprise/ballerina-registry#2177 on 2023-08-11:

Description:

For the Central endpoints tools/{toolsIdPath} and tools/{toolsIdPath}/{version}, when the tooldIdPath does not exist the error message is not appropriate.


{

    "message": "unexpected error occured while searching for org name of tool id: edi"

}

It should be updated to denote that the tool does not exist.

Steps to reproduce:

Send a GET request to the endpoint https://api.dev-central.ballerina.io/2.0/registry/tools/nonexistant.

Affected Versions:

OS, DB, other environment details and versions:

Related Issues (optional):

https://github.com/ballerina-platform/ballerina-lang/issues/40264

Suggested Labels (optional):

Suggested Assignees (optional):