HeyGen-Official / StreamingAvatarTSDemo

A typescript demo using react and the Streaming Avatar SDK
12 stars 20 forks source link

401 Unauthorized #5

Open ln613 opened 1 month ago

ln613 commented 1 month ago

When I try your demo, after I click the "start" button, I got the "401 Unauthorized" error. I already set my trial token in the code, what else do I need to do to make the demo work?

image

SaiRev0 commented 3 weeks ago

Did you get your Access Token Key from the trial key ?

ln613 commented 3 weeks ago

yes, from the trial token image

SaiRev0 commented 3 weeks ago

@ln613 See in the code, we have to add our access key, which we can get from the trial token, you could not directly add this trial token into the codebase

Here is the API call you need to do to get your access key from the trial token Screenshot 2024-06-10 182221

iamfiscus commented 2 weeks ago

I'm also getting the same error.

I pulled the Trial Key and put it in the ENV file.

How is the screenshot that different from what's happening in the code?

image

The first call to the server to generate a key works, but the call to stream still fails.

image