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

sign up and get "Socket operation failed" #45

Open
OneZeroH opened this issue Jan 30, 2024 · 3 comments
Open

sign up and get "Socket operation failed" #45

OneZeroH opened this issue Jan 30, 2024 · 3 comments
Assignees

Comments

@OneZeroH
Copy link

I clone the project and run on a physical and virtual pixal 6a
but when I signing up, I alway got "Socket operation failed"
after I change api on api_client.dart from "https://.frontendapi.corbado.io" to "https://api.eu-1.corbado.io" which works on live demo but still got the same errror
please tell me how to do with that, thanks

@OneZeroH OneZeroH changed the title sign in and get "Socket operation failed" sign up and get "Socket operation failed" Jan 30, 2024
@vincentdelitz
Copy link
Contributor

Hey @OneZeroH,

Thank you for this issue - we'll look into it!

@incorbador
Copy link
Contributor

incorbador commented Feb 5, 2024

Hey @OneZeroH, which of the example applications are you running? (the repository contains quite a few of them).
It appears that you haven't set up the CORBADO_PROJECT_ID environment variable. That's why the URL looks incomplete (instead of https://.frontendapi.corbado.io it should be for example https://pro-6244024196016258271.frontendapi.corbado.io.

So what can you do?

  • either you use our melos commands to run the examples => check out our "Example" section of our README: https://pub.dev/packages/passkeys#example
  • alternatively you can make sure that the ENV variable will be set yourself by including it in your run command (the command for the passkey package example would then look like this: flutter run lib/main.dart --dart-define=CORBADO_PROJECT_ID=pro-6244024196016258271

Please let me know if you were able to run the example :)

@OneZeroH
Copy link
Author

OneZeroH commented Feb 6, 2024

When I use melos commands to run, it works!

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

3 participants