appwrite / console

The Console that makes Appwrite tick from the browser πŸ–₯
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
310 stars 129 forks source link

πŸ› Bug Report: Don't Show API Responses for Errors #974

Open ItzNotABug opened 3 months ago

ItzNotABug commented 3 months ago

πŸ‘Ÿ 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?

🏒 Have you read the Code of Conduct?

naman1608 commented 3 weeks ago

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

ItzNotABug commented 3 weeks ago

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.