Error: 'clientAccessToken' cannot be empty

128 views Asked by At

I'm new to learning javascript and I'm running into an issue with trying to deploy this web app using heroku: https://github.com/girliemac/web-speech-ai. The error message says:

Error: 'clientAccessToken' cannot be empty.

I am getting this error message after I have already written the api key in the .env and app.json file. Can someone help me resolve this?

Edit: I already have the dotenv module installed.

1

There are 1 answers

0
user12100564 On

Following the documention:https://devcenter.heroku.com/articles/config-vars, I was able to resolve the issue by setting the config vars. I thought just writing it in the .env of the app's root directory would work, but I also needed to write it for the heroku app as well.