GeminiProChat
GeminiProChat copied to clipboard
嗯… 无法访问此页面 ip已拒绝连接。
What operating system are you using?
windows
What browser are you using?
edge
Describe the bug
嗯… 无法访问此页面
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/@[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/@[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/@[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/@[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/@[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/@[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/@[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/@[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/@[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/@[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/@[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/@[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/@[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/@[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/@[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/@[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
- [X] I am willing to submit a pull request for this issue.
Same problem as you.any news update about it ?
@kdt2014 建議在149.248.21.180執行以下操作:
- 用
rm -rf
刪除本項目下所有物件。 - 重新啟動虛擬機
git clone https://github.com/babaohuang/GeminiProChat/ --recursive --remote-submodules
- 請根據README教程,重新設置一下即可再次使用。