HTTP Error: 401, The entered credentials were incorrect. Firebase Cloud Function
HTTP Error: 401, The entered credentials were incorrect. Firebase Cloud Function
每当我在终端中使用以下命令时(mac os sierra)
firebase 初始化
将显示以下三个选项
❯◯ Database: Deploy Firebase Realtime Database Rules
◯ Functions: Configure and deploy Cloud Functions
◯ Hosting: Configure and deploy Firebase Hosting sites
如果我 select 什么都没有然后按 Enter
我会收到下面的消息
First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.
i .firebaserc already has a default project, skipping
i Writing configuration info to firebase.json...
i Writing project information to .firebaserc...
✔ Firebase initialization complete!
但是当我select第二个选项
◯ Functions: Configure and deploy Cloud Functions
我会收到下面的消息
First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.
i .firebaserc already has a default project, skipping
=== Functions Setup
A functions directory will be created in your project with a Node.js
package pre-configured. Functions can be deployed with firebase deploy.
Error: HTTP Error: 401, The entered credentials were incorrect.
Amits-MacBook-Pro:firebase-functions Amit$
我已经尝试使用 firebase logout 然后 firebase login 再次出现相同的错误
我也用过firebase list
我得到了以下警告,然后我得到了项目列表
Amits-MacBook-Pro:firebase-functions Amit$ firebase 列表
警告:高级压缩编码在没有 ES6/C++11 的情况下不可用。回到 gzip。
从很久以前我就使用 firebase 功能和另一个 google 登录,现在我从那里注销并开始使用不同的 google 登录帐户登录但无法登录,如果我使用之前的登录 google 登录仍然无法正常工作
我还检查了我使用 firebase init 的目录,没有在该目录中创建文件。
在 Firebase 功能的演示中,他们显示已创建一些文件
https://www.youtube.com/watch?v=EvV9Vk9iOCQ&t=308s
我应该卸载 firebase 并重新安装吗?如果是,请告诉我如何卸载?
当我使用错误的 Google 帐户进行身份验证时,我遇到了同样的 Firebase 错误:"HTTP Error: 401, The entered credentials were incorrect"。
我做了 firebase login --reauth
并使用正确的帐户登录。
之后项目部署成功
每当我在终端中使用以下命令时(mac os sierra)
firebase 初始化
将显示以下三个选项
❯◯ Database: Deploy Firebase Realtime Database Rules
◯ Functions: Configure and deploy Cloud Functions
◯ Hosting: Configure and deploy Firebase Hosting sites
如果我 select 什么都没有然后按 Enter
我会收到下面的消息
First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.
i .firebaserc already has a default project, skipping
i Writing configuration info to firebase.json...
i Writing project information to .firebaserc...
✔ Firebase initialization complete!
但是当我select第二个选项
◯ Functions: Configure and deploy Cloud Functions
我会收到下面的消息
First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.
i .firebaserc already has a default project, skipping
=== Functions Setup
A functions directory will be created in your project with a Node.js
package pre-configured. Functions can be deployed with firebase deploy.
Error: HTTP Error: 401, The entered credentials were incorrect.
Amits-MacBook-Pro:firebase-functions Amit$
我已经尝试使用 firebase logout 然后 firebase login 再次出现相同的错误
我也用过firebase list
我得到了以下警告,然后我得到了项目列表
Amits-MacBook-Pro:firebase-functions Amit$ firebase 列表 警告:高级压缩编码在没有 ES6/C++11 的情况下不可用。回到 gzip。
从很久以前我就使用 firebase 功能和另一个 google 登录,现在我从那里注销并开始使用不同的 google 登录帐户登录但无法登录,如果我使用之前的登录 google 登录仍然无法正常工作
我还检查了我使用 firebase init 的目录,没有在该目录中创建文件。
在 Firebase 功能的演示中,他们显示已创建一些文件
https://www.youtube.com/watch?v=EvV9Vk9iOCQ&t=308s
我应该卸载 firebase 并重新安装吗?如果是,请告诉我如何卸载?
当我使用错误的 Google 帐户进行身份验证时,我遇到了同样的 Firebase 错误:"HTTP Error: 401, The entered credentials were incorrect"。
我做了 firebase login --reauth
并使用正确的帐户登录。
之后项目部署成功