ExerciseDB

ÜCRETLİ
Taraf Justin Mozley | Güncelleyen 8 days ago | Health and Fitness
Popülerlik

9.8 / 10

Gecikme

279ms

Hizmet Düzeyi

100%

Tüm Tartışmalara Dön

Hiding API KEY in .env

avatar
wlcole1970
2 months ago

I kept getting the message ‘You are not subscribed to this API.’

This doesn’t happen if it place the API Key into my fetchData.js file but if i want it to be secure and place it in the .env file, i get this message.

Any help is appreciated.

Thanks

avatar
genarene96 commented 2 months ago

I moved my .env file to the root of my project and it worked…Thanks

avatar
cristiangualteros23 commented 2 months ago

you must activate the free subscription, that’s sufficient.
Search by test endpoint

avatar
creativehippodesigns commented 2 months ago

This seems like a common error when you have you .env file stored in src instead of root of your project. Try moving it and then restarting your server. That should work.

avatar
Revis1on commented 2 months ago

I’m having the same problem

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun
Değerlendirme: 4.1 - Oy Sayısı: 22