Missing SHOPIFY_API_KEY environment variable, which in fact I am not.

I am developing a Shopify app but recently I’ve been getting this error when trying to access it:

image

I’ve had it hosted on fly.io for a while but this only started recently. Also, the app is still performing the necessary background tasks perfectly so it’s not like the API key I’ve provided is invalid or anything.

Right now I have the API key in the env section in my fly.toml file. I’ve tried putting it in the client secrets as well but that had no effect. Do I need to do something else?

I fixed the issue. I forgot that you have to set the API key in the flyctl deploy command.

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