-
Previously I had in my main.py db = Deta(os.environ.get('DETA_PROJECT_KEY')).Base(os.environ.get('BASE_LOG')) Today when I tried the endpoint, it failed at db.put(...etc). After trying empty .env and running deta deploy -e .env, I restored the .env but without changing the definition of db and the program works. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Use First you need to initialize Deta class with your access token (so you can't just call bare |
Beta Was this translation helpful? Give feedback.
-
I believe you did override your deta project key |
Beta Was this translation helpful? Give feedback.
I believe you did override your deta project key
DETA_PROJECT_KEY
by mistake. You should be able to fix that by setting it again yourself (deta update -e .env
). You can get a new project key from our UI.