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

Complex errors should always include a copy button #705

Open
clicksave opened this issue Sep 12, 2024 · 0 comments
Open

Complex errors should always include a copy button #705

clicksave opened this issue Sep 12, 2024 · 0 comments

Comments

@clicksave
Copy link

clicksave commented Sep 12, 2024

Got this error when registering a new controller account. it's pretty long and a bit annoying. should probably be replaced with a semantic error, but if the specific content of the error is important we should include a copy button as well. e.g.

image

rpc error: code = Internal desc = internal server error: {"response":{"errors":[{"message":"rpc error: code = Internal desc = internal server error","path":["finalizeRegistration"]}],"data":null,"status":200,"headers":{"map":{"content-length":"126","content-type":"application/json"}}},"request":{"query":"\n mutation FinalizeRegistration($credentials: String!) {\n finalizeRegistration(credentials: $credentials) {\n id\n contractAddress\n credentials {\n webauthn {\n id\n publicKey\n }\n }\n }\n}\n ","variables":{"credentials":"{\"id\":\"FwDaQ_qc5Jt8BfdUxRvJ_6VR9OgCQCxB4zL28IHRqec\",\"rawId\":\"FwDaQ_qc5Jt8BfdUxRvJ_6VR9OgCQCxB4zL28IHRqec\",\"type\":\"public-key\",\"response\":{\"attestationObject\":\"o2NmbXRkbm9uZWdhdHRTdG10oGhhdXRoRGF0YVikIKl-w_jvvCrKDPfKu0ILSgnQrsmQVGbJrfeVhPp1_tNFAAAAALU5dmZIhaprzr_lImKkOaIAIBcA2kP6nOSbfAX3VMUbyf-lUfToAkAsQeMy9vCB0annpQECAyYgASFYIL9TBLMXbnJa9UA466efuc2mNu3-J5GU2A02UYa6Z7MtIlggI00RRJxiP4ZsRvlTh0SzEFL-q4N0HAQkMYJ2aPC72jU\",\"clientDataJSON\":\"eyJ0eXBlIjoid2ViYXV0aG4uY3JlYXRlIiwiY2hhbGxlbmdlIjoiek85bEtmQnFQSG51V2ZVdmtfN0lXTW43Y1hONllfMnVHNnVFSklGVEFCQSIsIm9yaWdpbiI6Imh0dHBzOi8veC5jYXJ0cmlkZ2UuZ2ciLCJjcm9zc09yaWdpbiI6dHJ1ZX0\"}}"}}}


image

or possibly this..

image
@clicksave clicksave changed the title Add the copy button to all errors Complex errors should always include a copy button Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant