Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEEPGRAM_ENV=development #15

Open
HMDRAMS-DEV opened this issue Jul 10, 2024 · 9 comments
Open

DEEPGRAM_ENV=development #15

HMDRAMS-DEV opened this issue Jul 10, 2024 · 9 comments

Comments

@HMDRAMS-DEV
Copy link

DEEPGRAM_ENV=development is missing in .env.local and API logic in README won't work without it.

@lukeocodes
Copy link
Contributor

hey, DEEPGRAM_ENV=development results in not creating a temporary key, and instead exposes your API key to the client. you shouldn't use it unless it is in a development environment

@HMDRAMS-DEV
Copy link
Author

HMDRAMS-DEV commented Jul 10, 2024

Thanks, I'm a bit unclear on how to run the code otherwise though, I keep getting this error: DeepgramError: A deepgram API key is required

This is happening despite having .env.local with the API key.

@lukeocodes
Copy link
Contributor

it could be that in your environment, the key is not living long enough for the connection to be started. you could increase the time to live. it should be really short though. you'll need to adjust it based on your needs

@RostyslavDzhohola
Copy link

RostyslavDzhohola commented Jul 16, 2024

it could be that in your environment, the key is not living long enough for the connection to be started. you could increase the time to live. it should be really short though. you'll need to adjust it based on your needs

I have tried adjusting to 5 min, same error

{name: 'DeepgramApiError', message: 'Your account does not have the required scope to perform that action for this project.', status: 403}

Only works with
DEEPGRAM_ENV=development

@Donald646
Copy link

Same here, I can't get it to work without development env variable, but it just stopped working completely for me nw

@Borahm
Copy link

Borahm commented Aug 3, 2024

Same issue here

@cpietsch
Copy link

cpietsch commented Aug 5, 2024

go to advanced when creating the key and select role: Admin

@ashesashes
Copy link

same issue here. added a new key with role: Admin.
is there a fix for this?

@cpietsch
Copy link

I ended up not using temporary keys, since they did not work reliably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants