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

嗯… 无法访问此页面 ip已拒绝连接。 #139

Open
1 task done
kdt2014 opened this issue Jan 22, 2024 · 2 comments
Open
1 task done

嗯… 无法访问此页面 ip已拒绝连接。 #139

kdt2014 opened this issue Jan 22, 2024 · 2 comments

Comments

@kdt2014
Copy link

kdt2014 commented Jan 22, 2024

What operating system are you using?

windows

What browser are you using?

edge

Describe the bug

嗯… 无法访问此页面
Ubug
ip已拒绝连接。

What prompt did you enter?

网页刚部署好能够使用,过一段时间(一小时左右)就出现以上报错

Console Logs

root@vultr:~# docker logs 17f9a1f75294
Starting service...
Running script...
Server listening on http://0.0.0.0:3000
GoogleGenerativeAIError: [400 Bad Request] Please ensure that multiturn requests ends with a user role or a function response.
at makeRequest (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@google/generative-ai /dist/index.mjs:205:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateContentStream (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@goog le/generative-ai/dist/index.mjs:504:22)
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^

GoogleGenerativeAIError: [400 Bad Request] Please ensure that multiturn requests ends with a user role or a function response.
at makeRequest (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@google/generative-ai /dist/index.mjs:205:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateContentStream (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@goog le/generative-ai/dist/index.mjs:504:22)

Node.js v18.15.0
Cleaning up!
sh: can't kill pid 34: No such process
Starting service...
Running script...
Server listening on http://0.0.0.0:3000
GoogleGenerativeAIError: [400 Bad Request] Please ensure that multiturn requests alternate between user and model.
at makeRequest (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@google/generative-ai /dist/index.mjs:205:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateContentStream (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@goog le/generative-ai/dist/index.mjs:504:22)
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^

GoogleGenerativeAIError: [400 Bad Request] Please ensure that multiturn requests alternate between user and model.
at makeRequest (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@google/generative-ai /dist/index.mjs:205:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateContentStream (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@goog le/generative-ai/dist/index.mjs:504:22)

Node.js v18.15.0
Cleaning up!
sh: can't kill pid 35: No such process
Starting service...
Running script...
Server listening on http://0.0.0.0:3000
GoogleGenerativeAIError: [400 Bad Request] Please ensure that multiturn requests ends with a user role or a function response.
at makeRequest (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@google/generative-ai /dist/index.mjs:205:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateContentStream (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@goog le/generative-ai/dist/index.mjs:504:22)
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^

GoogleGenerativeAIError: [400 Bad Request] Please ensure that multiturn requests ends with a user role or a function response.
at makeRequest (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@google/generative-ai /dist/index.mjs:205:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateContentStream (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@goog le/generative-ai/dist/index.mjs:504:22)

Node.js v18.15.0
Starting service...
Running script...
Server listening on http://0.0.0.0:3000
GoogleGenerativeAIError: [500 Internal Server Error] An internal error has occurred. Please retry or report in https: //developers.generativeai.google/guide/troubleshooting
at makeRequest (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@google/generative-ai /dist/index.mjs:205:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateContentStream (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@goog le/generative-ai/dist/index.mjs:504:22)
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^

GoogleGenerativeAIError: [500 Internal Server Error] An internal error has occurred. Please retry or report in https: //developers.generativeai.google/guide/troubleshooting
at makeRequest (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@google/generative-ai /dist/index.mjs:205:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateContentStream (file:///usr/src/node_modules/.pnpm/@google[email protected]/node_modules/@goog le/generative-ai/dist/index.mjs:504:22)

Node.js v18.15.0
Starting service...
Running script...
Server listening on http://0.0.0.0:3000

No response

Participation

  • I am willing to submit a pull request for this issue.
@robotenan
Copy link

Same problem as you.any news update about it ?

@codenamedpkt
Copy link

codenamedpkt commented Apr 27, 2024

@kdt2014 建議在149.248.21.180執行以下操作:

  1. rm -rf刪除本項目下所有物件。
  2. 重新啟動虛擬機
git clone https://github.com/babaohuang/GeminiProChat/ --recursive --remote-submodules
  1. 請根據README教程,重新設置一下即可再次使用。

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

3 participants