YogeshPrasanna / expense-manager-react

An 💰 Expense Tracking App Made using React ⚛️ , Firebase for storage and authentication
https://sad-shirley-6ef62f.netlify.app/
MIT License
74 stars 52 forks source link

Invalid Firebase API error #25

Closed Rahulkasyap closed 5 years ago

Rahulkasyap commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

i've added this in the readme now

Abhijeetm96 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Thanks @YogeshPrasanna

Can you explain what was the error?

YogeshPrasanna commented 5 years ago

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 commented 5 years ago

@YogeshPrasanna

image

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

YogeshPrasanna commented 5 years ago

Create this as a seperate issue , need to check