console icon indicating copy to clipboard operation
console copied to clipboard

🐛 Bug Report: Don't Show API Responses for Errors

Open ItzNotABug opened this issue 1 year ago • 2 comments

👟 Reproduction steps

  1. Delete an organization [assume org. id as xyz]
  2. Go to the Console via direct url i.e. https://cloud.appwrite.io/console/project-xyz/ OR simply use the above link with a wrong project id
  3. Error is displayed as below -

Invalid Argument

Project with the requested ID could not be found. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used.


Console should instead show a simple - Project does not exist or was recently deleted or you might have been removed from the organization.

👍 Expected behavior

Show a more simpler, understandable error message.

👎 Actual Behavior

API response is shown directly as Error which can be confusing to some users.

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

ItzNotABug avatar Mar 17 '24 06:03 ItzNotABug

@ItzNotABug agreed, the error message to be displayed should be different from the API error response. Can I try this?

naman1608 avatar Jun 08 '24 20:06 naman1608

Hey @naman1608, I think one of a core member needs to bump in here since there are multiple cases where this issue can happen around the console.

A direct/hardcoded message based on the returned error won't be enough.

ItzNotABug avatar Jun 09 '24 17:06 ItzNotABug