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

lots of errors getting this to run #58

Open
emilio-gagliardi opened this issue Aug 5, 2024 · 0 comments
Open

lots of errors getting this to run #58

emilio-gagliardi opened this issue Aug 5, 2024 · 0 comments

Comments

@emilio-gagliardi
Copy link

Finally got it to load but as soon as I try to use it.

unhandledRejection: BadRequestError: 400 We could not parse the JSON body of your request. (HINT: This likely means you aren't using your HTTP library correctly. The OpenAI API expects a JSON payload, but what was sent was not valid JSON. If you have trouble figuring out how to fix this, please contact us through our help center at help.openai.com.) at APIError.generate (webpack-internal:///(rsc)/./node_modules/openai/error.mjs:58:20) at OpenAI.makeStatusError (webpack-internal:///(rsc)/./node_modules/openai/core.mjs:293:65) at OpenAI.makeRequest (webpack-internal:///(rsc)/./node_modules/openai/core.mjs:336:30) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async streamingChatCompletion (webpack-internal:///(rsc)/./app/tools/streamingChatCompletion.tsx:28:28) at async eval (webpack-internal:///(rsc)/./app/action.tsx:65:40) { status: 400, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8ae8d8cd6c8a61e3-YVR', connection: 'keep-alive', 'content-length': '443', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 05 Aug 2024 18:28:25 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=AIsSbktMKc0IBCfQxMIOSYk_rgmR_mmctDXMuUr7RR0-1722882505-1.0.1.1-nZUV1l91pqd6cne2nVHIrVCVCgkZ770yBc8r2Xlnty7c5FxeZC33_LLVU6oldl_GU9gqFNecM5VjI0dilnNkOQ; path=/; expires=Mon, 05-Aug-24 18:58:25 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=7mMZljsGq.iKtOToc_ov9c8ZejsDnAFi_E_aZIhQ3vU-1722882505928-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=15552000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_0ed8707809c12859b3ee612b7ce8026a' }, request_id: 'req_0ed8707809c12859b3ee612b7ce8026a', error: { message: "We could not parse the JSON body of your request. (HINT: This likely means you aren't using your HTTP library correctly. The OpenAI API expects a JSON payload, but what was sent was not valid JSON. If you have trouble figuring out how to fix this, please contact us through our help center at help.openai.com.)", type: 'invalid_request_error', param: null, code: null }, code: null, param: null, type: 'invalid_request_error' }

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

1 participant