project_ai_mern_image_generation icon indicating copy to clipboard operation
project_ai_mern_image_generation copied to clipboard

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

Open prasad-shembekar opened this issue 2 years ago • 13 comments

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

image

prasad-shembekar avatar Feb 10 '23 09:02 prasad-shembekar

I have same problem , have you found a solution?

alsyferr avatar Feb 12 '23 11:02 alsyferr

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

prasad-shembekar avatar Feb 13 '23 18:02 prasad-shembekar

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.

Ugyenwangdi avatar Feb 15 '23 17:02 Ugyenwangdi

hey Is there any solution to this ? please do share

sumit970 avatar Feb 19 '23 17:02 sumit970

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

Ugyenwangdi avatar Feb 20 '23 02:02 Ugyenwangdi

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

jumailj avatar Feb 26 '23 13:02 jumailj

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?

ashanviii avatar Mar 20 '23 12:03 ashanviii

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?

Saksham1005 avatar Apr 03 '23 06:04 Saksham1005

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

Change const to var

##worked for me

Darkcoder-paditya avatar May 18 '23 13:05 Darkcoder-paditya

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

Wodaloo avatar Jun 08 '23 00:06 Wodaloo

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

Wodaloo avatar Jun 08 '23 00:06 Wodaloo

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

akashshukla7458 avatar Jun 08 '23 16:06 akashshukla7458

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: @.***>

Wodaloo avatar Jun 08 '23 17:06 Wodaloo