honeyhiveai / python-sdk

MIT License
0 stars 0 forks source link

Error: Failed to export batch code: 403, reason: {"error":"Invalid API token!"} #102

Open akabeera opened 2 months ago

akabeera commented 2 months ago

Hi,

I'm trying to use HoneyHive to profile my Agent. I'm using LlamaIndex with OpenAI in python. I follow the basic steps suggested when I logged into the portal but I get these errors:

ERROR - Failed to export batch code: 403, reason: {"error":"Invalid API token!"}

This is my implementation

HONEYHIVE_API_KEY = os.getenv("HONEYHIVE_API_KEY")
from honeyhive.tracer import HoneyHiveTracer
HoneyHiveTracer.init(
    api_key=HONEYHIVE_API_KEY,
    project='copilot',
    source='dev', # e.g. "prod", "dev", etc.
    session_name='test',
)
akabeera commented 2 months ago

Hello any update on this?

codehruv commented 1 month ago

@akabeera I apologize for the delay in response. We didn't see the issue until right now.

Can you install the new package version 0.2.9 and try passing the api key directly to tracer init without picking from env?

That'll help us rule out that the issue is not due to the environment.