You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 13, 2025. It is now read-only.
I thought I had remedied the problem, it seems this was not the case.
I'm having a load of trouble with require('dotenv-safe').load(); in the index.js
despite creating a process.env file in the root of the program and filling in the details for my twilio services, it does not want to run at all:
My attempts to fix this problem lead me to think it was a versioning issue, something about the "dotenv-safe" as opposed to just "dotenv" was preventing the file from being read. Removing "-safe" did allow the program to start at least (with disconcerting errors)
"require('dotenv').load();
Tested it out all the same, and sure enough it fails to retrieve the token (500 error)
I'm fairly sure the different looking errors have the same cause, and I'm fairly sure the cause is that dotenv isn't finding the process.env but for the life of me I can't figure why.