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

Crash on iOS 14 When Initializing SiweMessage Instance #185

Open
osmanthustonx opened this issue Nov 16, 2023 · 6 comments
Open

Crash on iOS 14 When Initializing SiweMessage Instance #185

osmanthustonx opened this issue Nov 16, 2023 · 6 comments

Comments

@osmanthustonx
Copy link

osmanthustonx commented Nov 16, 2023

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 osmanthustonx changed the title Crash on iOS 14 When Initializing SIWE Instance Crash on iOS 14 When Initializing SiweMessage Instance Nov 16, 2023
@chrismin
Copy link

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

@osmanthustonx
Copy link
Author

@chrismin no idea🥲

@ibeallc
Copy link

ibeallc commented Mar 19, 2024

Same

@ibeallc
Copy link

ibeallc commented Apr 2, 2024

Hello team?

@liringlas
Copy link

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

@matthew-t3
Copy link

Having the same issue with Android

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

5 participants