adrianhajdin / project_threejs_ai

https://jsmastery.pro
893 stars 267 forks source link

Possible API Issue #18

Closed 0x07xxs closed 1 year ago

0x07xxs commented 1 year ago

Error: Uncaught Error: Could not load data:image/png;base64,undefined: undefined)

So I followed everything from the video and copied the code I even used his code and it's still giving me an issue for some reason I paid $3.00 for the API key and still nothing the screen is just white indicating there's an error I have been stuck with this error for about an hour if anyone can help I would greatly appreciate it

0x07xxs commented 1 year ago

response: { status: 401, statusText: 'Unauthorized', headers: { date: 'Thu, 08 Jun 2023 03:02:51 GMT', 'content-type': 'application/json', 'content-length': '281', connection: 'close', 'www-authenticate': 'Basic realm="OpenAI API"', 'access-control-allow-origin': '*', 'openai-version': '2020-10-01', 'x-request-id': '93dc0c8fb45bb567bbd36f6b7bd9ca82', 'openai-processing-ms': '24', 'strict-transport-security': 'max-age=15724800; includeSubDomains', 'cf-cache-status': 'DYNAMIC', server: 'cloudflare', 'cf-ray': '7d3de5f88ac6090a-LAX', 'alt-svc': 'h3=":443"; ma=86400' },

Here is my response from the server. I did barely pay for it and they are still holding my $5 since its my first time paying them im not sure if I have to wait for that to go through