-
Notifications
You must be signed in to change notification settings - Fork 39
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
Failed host lookup: while using dart frog. #6
Comments
Are you getting this error in local development? |
Yes! |
Thanks - does this error throw when calling firestore, or when initializing the app? |
initializing working well, it is about calling firestore. Get set etc. all functions throw this error. |
Do you maybe have some stracktrace and a more complete example? Ideally something we can run Firestore is working fine for me, and there's no reference to |
Okey I will try but is firestore working fine for you on dart frog project @rrousselGit ? |
Acutally I think I know what this endpoint is. |
Here the stack trace
|
I am not fully sure why yet, but that issue appears to be caused by logging in with the environment. But for now, you could try logging in with a service-account.json file. That likely would work |
Alternatively, are you trying to use the emulator but maybe didn't start it? |
The weird thing is that it's |
I think I know: You don't seem to be logged in. Therefore You should have one of the following setup:
If none of these are true, you'll end-up with this error. The error message is cryptic, but likely expected. |
Closing as this was answered. I raised a PR to improve the error message. It's only a matter of time before the message is more intuitive :) |
Same issue here. I hope a better error message comes to this package. Btw, authenticating with service account json works fine. |
Hello,
I was trying to implement dart firebase admin library to my dart:frog project. It is successfully initializing but when I try to do anything related firestore I get
Failed host lookup: 'metadata.google.internal'
I dont have any logic I am just calling on main.
here the versions
The text was updated successfully, but these errors were encountered: