siwe icon indicating copy to clipboard operation
siwe copied to clipboard

Crash on iOS 14 When Initializing SiweMessage Instance

Open osmanthustonx opened this issue 2 years ago • 7 comments

Description

The SIWE (Sign-In with Ethereum) library encounters a crash immediately upon initialization when running on iOS 14. This seems to be related to a syntax error in parser.js.

Steps to Reproduce

  1. Initialize a SiweMessage instance on an iOS 14 device.
  2. Observe that the app crashes immediately after load.

Expected Behavior

The SiweMessage instance should load without causing the app to crash.

Actual Behavior

The app crashes and the following error is displayed in the console: (Unhandled Promise Rejection: Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name) (Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name) (Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name) (Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name) (Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name)

Possible Solution

N/A

Additional Information

  • This issue occurs consistently on iOS 14.
  • No such issues have been observed on later versions of iOS or on other platforms.

Environment

  • Device: iphone 8 plus
  • OS: iOS 14
  • Browser: safari
  • SIWE Library Version: ^2.1.4

Screenshots

2023-11-16 2 33 49

Acknowledgements

I would like to express my gratitude to the development team for creating the SIWE library. Your work significantly contributes to the ecosystem, and I appreciate the effort put into making such tools available and maintained.

osmanthustonx avatar Nov 16 '23 06:11 osmanthustonx

@osmanthustonx I'm running into the same issue! Did you manage to figure out what it was?

chrismin avatar Nov 29 '23 10:11 chrismin

@chrismin no idea🥲

osmanthustonx avatar Dec 04 '23 03:12 osmanthustonx

Same

ibeallc avatar Mar 19 '24 09:03 ibeallc

Hello team?

ibeallc avatar Apr 02 '24 05:04 ibeallc

Any news, workarounds or updates on this topic? I recently encountered the same issue.

UA:

iOS Version: 14.6
iPhone
Mobile Safari 14.1.1

liringlas avatar Jun 10 '24 08:06 liringlas

Having the same issue with Android

matthew-t3 avatar Sep 24 '24 06:09 matthew-t3