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

Client error: POST https://fcm.googleapis.com/fcm/send resulted in a 401 INVALID_KEY response #68

Open
AkshayRSI opened this issue Aug 26, 2020 · 8 comments

Comments

@AkshayRSI
Copy link

AkshayRSI commented Aug 26, 2020

I am getting above error while sending notification. I dont understand how to resolve it..please help with it. I am getting this error in laravel....

@benwilkins
Copy link
Owner

According to the error, you have an invalid key. Make sure your keys are set correctly.

@Seedorf161
Copy link

Seedorf161 commented Oct 14, 2020

I am getting above error while sending notification. I dont understand how to resolve it..please help with it. I am getting this error in laravel....

Hi, please, how did you solve this? i'm getting the same error and i used the "Server key" seen in the Cloud Messaging tab in Firebase console.

@jindalAnuj
Copy link

getting the same error any update

@lexjwa
Copy link

lexjwa commented Oct 7, 2021

Getting the same error.

1 similar comment
@aymanalhattami
Copy link

Getting the same error.

@aymanalhattami
Copy link

The same error happened to me last week, that was because the value of key returned as 0 instead of firebase server key.
I solve it by overriding vendor class composer overriding vendor class composer

@mertayasa
Copy link

@aymanalhattami did you just override without changing something ?

@mertayasa
Copy link

@aymanalhattami never mind, i figured out your solution.. the actual problem is its unable to read fcm key from services.php file. so i override the class as you said and put fcm key in another config file.. then call it.. viola.. it works.. thanks for hinting that

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

7 participants