magiclabs / magic-js

Magic browser/React Native JavaScript SDK is your entry-point to integrating passwordless authentication inside your application.
https://magic.link/docs/api-reference/client-side-sdks/web
Apache License 2.0
463 stars 86 forks source link

Error 500 on send page from electron:latest #637

Open elvince opened 1 year ago

elvince commented 1 year ago

✅ Prerequisites

🐛 Description

Here is the error 500 response content : {"data":{},"error_code":"auth_relayer/INTERNAL_SERVER_ERROR","message":"Internal service error.","status":"failed"}

I was using electron : 23.2.0 and it was working.

now I'm using electon: 26.2.1 and it's not working anymore.

🤔 Expected behavior

No errors and see the iframe on top of our application so uor users can log to magic-link.

😮 Actual behavior

I trace the different request made by those versions and only the user agent differs:

You can use your sample to reproduce the error: Clone https://github.com/magiclabs/example-electron Upgrade to latest electron version and you will see the error.

I hope you can fix this soon as it is impacting our production users and we can't roll back on electron version :(

Thanks

🌎 Environment

Software Version(s)
magic-sdk 20.0.2
electron 26.2.1
Operating System windows 10
alfaro-v commented 8 months ago

Same issue here, bug starts with electron@24.4.0 (Ok in 24.3.1)