-
-
Notifications
You must be signed in to change notification settings - Fork 753
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
default Boilerplate error message #301
Comments
You have to navigate to https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk |
Hey @DarkArtistry. Does @kudzuu answer solve your issue? |
And then update |
This should be added to the getting started |
@Jakobovski you can create pull-request <) |
i will try it out and let you guys know ! |
what is the I tried to follow the boilerplate instructions and added all the env vars to .env.local, including GCP_SERVICE_KEY with a key from Firebase put on one line without spaces. The two things I notice messing up are the error in the console about missing FIREBASE_CONFIG and the routes Edit: I got past some of the error messages by configuring the deploy and getting that to work. But the admin pages (/admin/users and /admin/stories) are still blank. Looking at the react code those are just setup to render children but it's not clear that children are passed in anywhere. Do those pages ever work or are they like a starting point example that isn't supposed to render anything yet? Edit: more digging, found that the migration defaults to creating users with is_admin: false. If I override this to be true, either in the migration or in the resolver, the admin pages are still blank. |
+1 |
+1 to learn more about gcp_service_key, including the format expected for
|
@greg234234 @rojobuffalo I don't see any problem in getting this app. running. You can download whole json config from firebase console and place it under app. directory. |
Your key inside your So after you came back from that page, the final code line will look like this: |
modified line 46 as specified here: kriasoft/react-firebase-starter#301. Also added '" "' around .env variable in heroku
Hi,
i'm new to this, i would like to ask of this issue i'm facing after running yarn build and yarn start :
Error: Failed to parse private key: Error: Invalid PEM formatted message.
at FirebaseAppError.FirebaseError [as constructor] (/Users/zhenhaowu/code/freelance/TodoList/node_modules/firebase-admin/lib/utils/error.js:39:28)
at FirebaseAppError.PrefixedFirebaseError [as constructor] (/Users/zhenhaowu/code/freelance/TodoList/node_modules/firebase-admin/lib/utils/error.js:85:28)
at new FirebaseAppError (/Users/zhenhaowu/code/freelance/TodoList/node_modules/firebase-admin/lib/utils/error.js:119:28)
at new Certificate (/Users/zhenhaowu/code/freelance/TodoList/node_modules/firebase-admin/lib/auth/credential.js:129:19)
at new CertCredential (/Users/zhenhaowu/code/freelance/TodoList/node_modules/firebase-admin/lib/auth/credential.js:192:64)
at Object.cert (/Users/zhenhaowu/code/freelance/TodoList/node_modules/firebase-admin/lib/firebase-namespace.js:224:58)
at Object../src/app.node.js (/Users/zhenhaowu/code/freelance/TodoList/build/app.js:792:37)
at webpack_require (/Users/zhenhaowu/code/freelance/TodoList/build/app.js:645:30)
at /Users/zhenhaowu/code/freelance/TodoList/build/app.js:713:55
at Object. (/Users/zhenhaowu/code/freelance/TodoList/build/app.js:716:10)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
at Module.require (internal/modules/cjs/loader.js:598:17)
The text was updated successfully, but these errors were encountered: