appwrite / appwrite/console

🐛 Bug Report: Streamline and Prevent Trimming of Error Message for Invalid Project ID

Open
#924 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Svelte
Stars
393
Forks
260
Avg merge
6h 53m
Merged PRs (30d)
24

Description

### 👟 Reproduction steps

1. Go to your console
2. Edit a wrong `projectID` in the url like - `https://cloud.appwrite.io/console/project-xyz`
3. The `404` error message is like below and is trimmed to fit for a single line -

Screenshot 2024-03-05 at 12 39 50 PM

The full value of the error is -
**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.**

This could be simply improved to use -

Screenshot 2024-03-05 at 12 45 11 PM

### 👍 Expected behavior

Show a normalised error without the mention of `X-Appwrite-Project` header as we aren't dealing directly with an API.

### 👎 Actual Behavior

Message is trimmed and not exactly correct.

### 🎲 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?

- [X] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.