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

Invalid Firebase API error #25

Closed
Rahulkasyap opened this issue Jun 28, 2019 · 8 comments
Closed

Invalid Firebase API error #25

Rahulkasyap opened this issue Jun 28, 2019 · 8 comments

Comments

@Rahulkasyap
Copy link

image
image
Even after providing the correct web API Key I am not able to authenticate nor sign in.
On click of
image
I get a error message

{"error":{"code":400,"message":"API key not valid. Please pass a valid API key.","errors":[{"message":"API key not valid. Please pass a valid API key.","domain":"global","reason":"badRequest"}],"status":"INVALID_ARGUMENT"}}.

What couldbe the possible error.

@YogeshPrasanna
Copy link
Owner

Hey @Rahulkasyap

In src/firebase/firebase.js

you'll have to change the config - only api key will be coming from environmental variables (env.local)

Make sure you add the app in firebase and get the values from firebase config , i forgot to mention this in readme.

add-app1

adding-firebase1

adding-firebase2

Hope this solves the issue

@YogeshPrasanna
Copy link
Owner

i've added this in the readme now

@Abhijeetm96
Copy link

Hi @YogeshPrasanna

Thanks for that.

But adding the firebase credential came out with as set of error. Please help me in getting rid of them.

image
image
image

@YogeshPrasanna
Copy link
Owner

Hey @Abhijeetm96

I've resolved those issues now , and checked in the code
Pull the latest code , you'll be able to run the application.

@Abhijeetm96
Copy link

Thanks @YogeshPrasanna

Can you explain what was the error?

@YogeshPrasanna
Copy link
Owner

Few months back , there was old expenses table - to migrate the data from old table to the new table ,
i was checking if that particular user had entries in that old table or not . so in that i was not checking if the data was !== null or not , it was a simple type error that i missed out to check.

This was happening only in new firebase projects - like the one you created, and i could not find it out since i had legacy tables too.

@Abhijeetm96
Copy link

@YogeshPrasanna

image

The loan page has been in loading phase since a while. Even the add button is missing

@YogeshPrasanna
Copy link
Owner

Create this as a seperate issue , need to check

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