# 🐛 Bug Report: Always getting exception when Traceloop.init()
If Traceloop.init() always throws, check your API key itself: in this case the key was invalid. Generate a fresh one at app.traceloop.com/settings/api-keys and paste it into .env without surrounding quotes. The maintainer confirmed removing the quotes and using a valid key resolved it.
## Context from the issue
gh:traceloop/openllmetry#340: Issue traceloop/openllmetry#340 (closed, 11 comments): ### Which component is this bug for? Traceloop SDK ### 📜 Description ```python from dotenv import load_dotenv import os load_dotenv() from traceloop.sdk import Traceloop Traceloop.init() ``` I have created a .env file which contains my trace loop api key. When run above program, it always report error as follows, am I doing anything wrong? Thanks ``` (py310) gyliu@guangyas-air openllmetry % [HOME]/... [HOME]/... Traceback (most recent call last): File "[HOME]/...