Unable to deploy node-express app

Hi everyone, glad to be on the Render platform.

I have been trying to deploy a node-express app that has an API key. It is from openai, and it’s a simple app to generate image based on the entered text description. I followed this video.

I get the following error when I deploy, and I’m unable to figure the problem. Please guide me in the right direction to resolve this -

I have set the environment variable in the Environment tab, and have defined the “key” name exactly as it is in my “.env” file and the “value” is set to be the API key I have gotten from openai website.

Please let me know if any additional information is required.


It’s tough to say without seeing your .env file (with hidden values of course) and having more context about your code.

How are you calling the ENV variable inside your .js file?

Jérémy, Render Support

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.