anse-app / chatgpt-demo

Minimal web UI for ChatGPT.
https://chatgpt.ddiu.me
MIT License
8k stars 3.82k forks source link

[bug] api/generate - Gateway Timeout 504 #153

Closed moHaHa closed 1 year ago

moHaHa commented 1 year ago

Describe the bug

as normal, I just send hi

image


then too much time pending

image


then error 504

image image

with message

An error occurred with your deployment EDGE_FUNCTION_INVOCATION_TIMEOUT

Request

curl 'https://chatgpt.ddiu.me/api/generate' \
  -H 'authority: chatgpt.ddiu.me' \
  -H 'accept: */*' \
  -H 'accept-language: en,en-US;q=0.9,ar;q=0.8' \
  -H 'content-type: text/plain;charset=UTF-8' \
  -H 'cookie: mp_10bab2a6cec3a2ef62083257f3f09083_mixpanel=%7B%22distinct_id%22%3A%20%22186b453fe1d317-0fdc99e75b6021-26031951-100200-186b453fe1e29d%22%2C%22%24device_id%22%3A%20%22186b453fe1d317-0fdc99e75b6021-26031951-100200-186b453fe1e29d%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%7D' \
  -H 'origin: https://chatgpt.ddiu.me' \
  -H 'referer: https://chatgpt.ddiu.me/' \
  -H 'sec-ch-ua: "Chromium";v="110", "Not A(Brand";v="24", "Google Chrome";v="110"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Windows"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-origin' \
  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36' \
  --data-raw '{"messages":[{"role":"user","content":"hi"}],"time":1678154495751,"sign":"63de47363334984585a7f91cf64a4fa71d3d3463f3cd29e6741f659c15d3aa3c"}' \
  --compressed

Response

An error occurred with your deployment

EDGE_FUNCTION_INVOCATION_TIMEOUT

Reproduction

https://chatgpt.ddiu.me/

System Info

os : Windows 10
brwoser : Chrome

Used Package Manager

npm

Validations

h7ml commented 1 year ago

The possible reason for this could be that the OpenAI quota has been exhausted due to excessive usage by too many people.

SakigamiYang commented 1 year ago

这是什么bug啊,不知道接口域名喜提GFW名单了吗

Root-FTW commented 1 year ago

The possible reason for this could be that the OpenAI quota has been exhausted due to excessive usage by too many people.

The possible reason for this could be that the OpenAI quota has been exhausted due to excessive usage by too many people.

Does it affect everyone who has chatgpt APi?

I set it up on vercel I set my API and it worked for a couple of hours, then I got the same error (An error occurred with your deployment EDGE_FUNCTION_INVOCATION_TIMEOUT).

I deleted my API and created a new one and still the same error, I changed my subdomain in vercel, changed my IP and still the error, I tried on other devices and the error is the same.

If I search the word "EDGE_FUNCTION_INVOCATION_TIMEOUT" here in the issues or discussion tab I see that many people had the same thing happen to them and nobody knows any solution :(

ddiu8081 commented 1 year ago

Sorry, we have run out of API Key quota in our demo and can't host any more requests. You may consider self-deployment.