skip to Main Content

Javascript – User Input for ChatGPT/OpenAIApi not working TypeError: Cannot read properties of undefined (reading 'choices')

I looked into various possible solutions: OpenAI and Javascript error : Getting 'TypeError: Cannot read properties of undefined (reading 'create') at Object.<anonymous>" https://github.com/davila7/code-gpt-docs/issues/57 https://www.npmjs.com/package/openai Here is my code: import { config } from "dotenv" config() // New import OpenAI from…

VIEW QUESTION

Javascript – Socket.io connection error net::ERR_CONNECTION_REFUSED when accessing from different devices

I've encountered an error with other people's computers, they can't access my little test chatting application, and incounter this error when attempting to connect: localhost:3000/socket.io/?EIO=4&transport=polling&t=Oi2Ko0C:1 Failed to load resource: net::ERR_CONNECTION_REFUSED localhost:3000/socket.io/?EIO=4&transport=polling&t=Oi2KorJ:1 My socket.io version is: 4.7.2 and I'm port fowarding…

VIEW QUESTION

Javascript – Failed to fetch AWS

I have a problem uploading files to the S3 bucket using the @aws-sdk/client-s3 library using PutObjectCommand and @aws-sdk/lib-storage Uploading files above 70kbps more or less returns the error: `TypeError: Failed to fetch at FetchHttpHandler.handle (fetch-http-handler.js:56:13) at PutObjectCommand.js:56:58 at flexibleChecksumsResponseMiddleware.js:17:26 at…

VIEW QUESTION
Back To Top
Search