Skip to content
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

API error system #23

Open
2 tasks
ISibboI opened this issue Jan 2, 2022 · 0 comments
Open
2 tasks

API error system #23

ISibboI opened this issue Jan 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ISibboI
Copy link
Owner

ISibboI commented Jan 2, 2022

Do not return internal errors via the API, but manually convert them to something that does not leak information but can be sent to the user.

  • Have an error counter and assign each error a unique number. That number gets logged together with the error, and also returned to the user. Then a user can provide information about the error using the error number.
  • Report API user errors in the answer of the API.
@ISibboI ISibboI added the enhancement New feature or request label Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant