adrianhajdin / project_ai_mern_image_generation

Build and Deploy a Full Stack MERN AI Image Generation App MidJourney & DALL E Clone
https://jsmastery.pro
1.08k stars 302 forks source link

SyntaxError: Unexpected token 'B', "Billing ha"... is not valid JSON #28

Open prasad-shembekar opened 1 year ago

prasad-shembekar commented 1 year ago

this error comes again and again, although i have used new api key from my personal account

image

alsyferr commented 1 year ago

I have same problem , have you found a solution?

prasad-shembekar commented 1 year ago

Let's wait, if someone gets solution of this issue

Ugyenwangdi commented 1 year ago

We need to sign up for new account. Don't use Continue with google, instead click on Signup and give an email and password to get get $18 credits for free. After verifying our account on email, we can go on to get our api key.

sumit970 commented 1 year ago

hey Is there any solution to this ? please do share

Ugyenwangdi commented 1 year ago

hey Is there any solution to this ? please do share

yes if you just want to test, we get $18 for free when we create a new account

jumailj commented 1 year ago

i just added my credit card. now it's working..

ashanviii commented 1 year ago

hey Is there any solution to this ? please do share

yes if you just want to test, we get $18 for free when we create a new account

hey! i did what you said but still its not working do i have to actually pay for it?

Saksham1005 commented 1 year ago

I just want to ask that even if we want to use our free credits do we have to register our card on the site?

Darkcoder-paditya commented 1 year ago

guys, use this: var openai = new OpenAIApi(configuration); instead of : const openai = new OpenAIApi(configuration);

Change const to var

worked for me

Wodaloo commented 1 year ago

anyone find a solution? Changing const to var didnt work for me.

Wodaloo commented 1 year ago

just added my credit card to my openai account and now its working

akashshukla7458 commented 1 year ago

just added my credit card to my openai account and now its working

have you tried with fresh account, I have 18 credits in my account still getting the error

Wodaloo commented 1 year ago

I haven’t, you can check your usage on openai to see if your credits have expired or not. But I’m pretty sure the error is because there is no card on file. Hope it helpsSent from my iPhoneOn Jun 8, 2023, at 10:21 AM, Akash Shukla @.***> wrote:

just added my credit card to my openai account and now its working

have you tried with fresh account, I have 18 credits in my account still getting the error

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>