-
Notifications
You must be signed in to change notification settings - Fork 34
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
🔊 Store token validation errors in the database and display them in the admin dashboard #1102
Comments
FYI, here's the script that I used to identify opcodes with two underscores for ca-ebike
|
As I think about this further, I don't think that the |
Ah actually it looks like having a
So the invalid opcode filter is actually
|
I have previously observed the difference in the charset between phone-generated and script-generated opcodes We should unify the script to behave the same, and potentially relocate both versions to e-mission-common |
For pre-generated tokens, one of the biggest issues is when the tokens don't work.
This can be either because the token is malformed on the phone, or when the token is properly formatted, but is not found among the valid tokens on the server.
To make it easier for admins to debug these issues themselves, I propose the following:
stats/client_error
messages, possibly with name =malformed_opcode
oropcode_not_found
opcode_not_found
opcodes to valid opcodes and suggest some potential matches, so admins can easily help participants troubleshoot what is going onWhile handling this we should also double check the client code to make sure that each malformed case is recorded properly - e.g. distinguish between the cases in
if (tokenParts.length < 3 || tokenParts.some((part) => part == '')) {
@JGreenlee for visibility
The text was updated successfully, but these errors were encountered: