Skip to content

fix: display error message with Logger #556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stevenjoezhang
Copy link
Contributor

The GraphQL API provided by Open Collective is protected by Cloudflare, and some IPs from certain ISPs might be blocked, leading to access failures. The current default behavior when access fails is to display an error message, but this is unnecessary for ordinary users.
IMG_1444

I have moved the display of related errors to the console.
截屏2025-03-10 下午2 11 29
截屏2025-03-10 下午2 35 23

@GameTec-live
Copy link
Owner

yeah, but id still display some error message in the ui... Maybe smthng like "rate limited: try again later" so that its not completly empty?

@stevenjoezhang
Copy link
Contributor Author

@GameTec-live Updated: a new error message will display to notify the user about network error

return error;
Logger log = Logger();
log.d(e.toString());
return ["(Failed to load contributors list, please try again later)"];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a localization for that please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants