question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid Message (state: 103)

See original GitHub issue

Hello, on validating my signature I get the following error:

Error: Invalid message: {"success":false,"state":103,"length":346,"matched":0,"maxMatched":6,"maxTreeDepth":15,"nodeHits":198,"inputLength":346,"subBegin":0,"subEnd":346,"subLength":346}

My message is:

'https://flash1.com wants you to sign in with your Ethereum account:\n0x1666A067759db93dC6E9E609BDcD7fAF31A1CE8B\n\n{"requestPath":"v3/test","method":"POST","body":"{}","timestamp":"2021-01-08T10:06:12.500Z"}\n\nURI: undefined\nVersion: 1\nChain ID: 1\nNonce: 2DaPHLOPicOFMTXpH\nIssued At: 2022-04-27T22:11:44.854Z\nExpiration Time: 2022-04-27T22:12:14.854Z'

or in SiweMessage form:

address:'0x1666A067759db93dC6E9E609BDcD7fAF31A1CE8B'
chainId:1
domain:'https://flash1.com'
expirationTime:'2022-04-27T22:12:14.854Z'
issuedAt:'2022-04-27T22:11:44.854Z'
nonce:'2DaPHLOPicOFMTXpH'
statement:'{"requestPath":"v3/test","method":"POST","body":"{}","timestamp":"2021-01-08T10:06:12.500Z"}'
version:'1'

The validation fails here: node_modules/@spruceid/siwe-parser/dist/abnf.js:267:19) Appreciate any help, i’m at a loss

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
monkybraincommented, Jun 19, 2022

@awoie Tried it out now and looks good to me! Thanks!

1reaction
awoiecommented, May 16, 2022

Our new beta release should have fixed that. It introduces an error:

INVALID_URI = 'URI does not conform to RFC 3986.',

Does this address your issue? @ycryptx @monkybrain

Read more comments on GitHub >

github_iconTop Results From Across the Web

Statuscode Description 102 • • 103 • • 105 106 • • 107 • • 108 ...
SMS -transmission conditions. Signal Card ... 103. AC voltage too low ... No AC grid detected / Wrong AC Grid State detected.
Read more >
Swift general error codes - Messaging FIN Error ... - Studocu
messaging fin error codes this reference guide lists the error codes and abort notifications returned fin in case of message validation errors or...
Read more >
FIN - Error Codes
103 :TPS is present in the message but the sender is not a member of TPS, or the message is not allowed for...
Read more >
SMPP Error Codes - OpenMarket
Hex value Decimal Description 0x00000000 0 No Error 0x00000001 1 Message length is invalid 0x00000002 2 Command length is invalid
Read more >
Text Validation Error Codes - IBM
SWIFT Error Code Translator Report Error Number Error Description M50 901 Message length exceeded T12 915 T13 916
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found