a year ago
Cannot initialize env variable GOOGLE_CREDENTIALS in railway, how can i do it? What the variable should contain?
11 Replies
Wdym? Is this an issue where you cannot add the variable to your service or do you not have that variable in the first place
I dont know how to name the variable and what should it conatain as a key…
I would speculate that GOOGCLE_CREDENTIALS is the key (which is also the variable's name). The question is: what should be inside it? An API token? What sort of token?
Yes, GOOGLECREDENTIALS is a name of variable and as a value (key) is a data from json file which was given by creating service account in google speech api, in local maschine all working, in railway not, obviously something wrong with the variable initialization GOOGLECREDENTIALS.
You're saying "initialization" like if it isn't literally a text string. What kind of error are you facing?
the error 500, internal server error, railway cannot reach the google credentials to use google speech to text service.
In project variables have created new service variable with Name-GOOGLE_CREDENTIALS, and value is content of json file given from google speech to text service account.
I have replaced value of variable on path to the json file, now it works.