Hello! I believe I am close but when my plug in runs I get this error - it installs correctly from localhost and I have CORS accepting all; I have no other information - is this a problem with my code ?
Iâm not sure about your code, but try to run the dev .env on any other place like a cloud development environment like GitHub Codespaces, Replit, or CodeSandbox.
I fixed it it was Django CORS related
It would be nice if you werenât that guy that says âFixed it! kâthanks bye!â What was the fix!?
Hi could you provide more details on how you solve this? I am stuck on this issue also
In NodeJS, I have added the perfect source code to resolve it. I would be honored if it can be of help to you.
I have a dead simple endpoint â/helloâ. When I hit this with POSTMAN I get the following result from my webserver:
bwj@MacBook-Air ~ % http :8080/hello
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: false
Access-Control-Allow-Headers: Content-Type, Authorization, openai-conversation-id, openai-ephemeral-user-id
Access-Control-Allow-Methods: GET, POST
Access-Control-Allow-Origin: https://chat.openai.com
cache-control: no-store, max-age=0
content-length: 27
{ âanswerâ: âHello Worldâ }
My plugin registers just fine with ChatGPT for local plugin development (Beta) but when I tell chatgpt something simple like âget hello endpointâ I get the above error message âfailed to fetchâ (as shown in the subject of this post). My logs show that NO request is being made by ChatGPT to my localhost webserver. Iâm using Chrome as my browser. What else can I try?
SOLVED: Using ngrok.com to tunnel my localhost webserver out to the world solved the issue. Be warned that with the free account at ngrok, every time you visit your âpublicâ facing url (that is tunneled down to your localhost web server) you will get prompted with a warning page that you have to click through to access any of your endpoints. This trips up ChatGPT. The easiest way to fix this is to purchase a paid ngrok plan to remove that interruption. ChatGPT then worked fine.