question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Heroku environment variable/auth issues

See original GitHub issue

Hi All, you’re doing a great job!

I just wanted to offer up something I resolved myself today, that I thought could help with your documentation.

On the Authentication page there is a special mention for Heroku. I was using the following and ran into issues myself:

await doc.useServiceAccountAuth({ client_email: process.env.GOOGLE_SERVICE_ACCOUNT_EMAIL, private_key: process.env.GOOGLE_PRIVATE_KEY, });

You mention about trying to replace \n with actual new lines. However, I found this solved the issue:

image

Hope this helps!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
luisccodecommented, Feb 10, 2021

Hi All, you’re doing a great job!

I just wanted to offer up something I resolved myself today, that I thought could help with your documentation.

On the Authentication page there is a special mention for Heroku. I was using the following and ran into issues myself:

await doc.useServiceAccountAuth({ client_email: process.env.GOOGLE_SERVICE_ACCOUNT_EMAIL, private_key: process.env.GOOGLE_PRIVATE_KEY, });

You mention about trying to replace \n with actual new lines. However, I found this solved the issue:

image

Hope this helps!

Thank you @henryprescott that works for me on AWS

0reactions
theoephraimcommented, Nov 7, 2021

I just added the other hint about replacing newlines to the docs, so hopefully that helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration and Config Vars - Heroku Dev Center
Config vars are exposed to your app's code as environment variables. For example, in Node.js you can access your app's DATABASE_URL config var ......
Read more >
Heroku not applying environment variable changes in Okta ...
When you change the environment variables, heroku should restart your app automatically. So, the two issues are that the environment variables ...
Read more >
Any clue as to why I am not able to use heroku environment ...
The client secret and client id are stored as environment variables in heroku, and locally!! When I dummy test the auth function with...
Read more >
'Invalid API Key' Heroku Deployment? : r/Firebase - Reddit
Auth works in MERN app's local development without any issues. All private information is stored in a .env file and then called in...
Read more >
Auth0 Integration With Heroku
Hi. I'm not sure if you still have the issue but what worked for me was adding missing env variables to Heroku. You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found