-
Notifications
You must be signed in to change notification settings - Fork 54
bLIP-51: Specify invalid token error code #68
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
base: master
Are you sure you want to change the base?
bLIP-51: Specify invalid token error code #68
Conversation
Previously the spec said that the LSP should return 'an error' in case of an invalid or unrecogized token. To keep the approach similar to what we do in bLIP-52 (where we specify a particular error code for this case), we now here specify an error code to be used in this case.
We add a method that allows the LSP to signal to the client the token they used was invalid. We use the `102` error code as proposed in lightning/blips#68.
We add a method that allows the LSP to signal to the client the token they used was invalid. We use the `102` error code as proposed in lightning/blips#68.
We add a method that allows the LSP to signal to the client the token they used was invalid. We use the `102` error code as proposed in lightning/blips#68.
We add a method that allows the LSP to signal to the client the token they used was invalid. We use the `102` error code as proposed in lightning/blips#68.
We add a method that allows the LSP to signal to the client the token they used was invalid. We use the `102` error code as proposed in lightning/blips#68.
We add a method that allows the LSP to signal to the client the token they used was invalid. We use the `102` error code as proposed in lightning/blips#68.
| | -32602 | Invalid params | {"property": %invalid_property%, "message": %human_message% } | Invalid method parameter(s). | | ||
| | 001 | Client rejected | {"message": %human_message% } | [LSPS0.client_rejected_error][] | | ||
| | 100 | Option mismatch | {"property": %option_mismatch_property%, "message": %human_message% } | The order doesnt match the options defined in `lsps1.get_info.options`. | | ||
| | 102 | Unrecognized or stale token | {} | The provided token was unrecognized or stale. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, why not 101?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, why not 101?
Because 101 is the get_info "Not found" error code. AFAIR, error codes should be unique per spec, not per request type.
Previously the spec said that the LSP should return 'an error' in case of an invalid or unrecogized token. To keep the approach similar to what we do in bLIP-52 (where we specify a particular error code for this case), we now here specify an error code to be used in this case.