Hi!
After an endless search of the generic error Uncaught internal server error.
I found out that the real error was: Firebase auth adater requires an credential. It is triggered in util.js and it isn't properly caught by index.js.
Because somehow it wasn't able to find the credential when passed in ParseServer({..}) and neither when inserted in the .env file or initiated with export.
ParseServer({..}) example:
"auth" : {
"firebase" : {
"module" : "parse-server-firebase-auth-adapter",
"databaseURL" : "https://MY.firebaseio.com",
"credential" : "./serviceAccountKey.json",
}
},
To fix the error I had to install dotenv and add require('dotenv').config() to my app.js to make it reads the environment variables.
I wonder if you know why originally it didn't read the credential?
Hi!
After an endless search of the generic error
Uncaught internal server error.I found out that the real error was:
Firebase auth adater requires an credential. It is triggered inutil.jsand it isn't properly caught byindex.js.Because somehow it wasn't able to find the credential when passed in
ParseServer({..})and neither when inserted in the .env file or initiated with export.ParseServer({..})example:To fix the error I had to install dotenv and add
require('dotenv').config()to myapp.jsto make it reads the environment variables.I wonder if you know why originally it didn't read the credential?