chatgpt-demo icon indicating copy to clipboard operation
chatgpt-demo copied to clipboard

500 Internal Privoxy Error

Open sakamataz opened this issue 2 years ago • 5 comments

Describe the bug

I deployed your project on the Singapore server. There is no problem with the local curl. I opened Alibaba Cloud's 3000 port. The following error will be reported during remote access:

500 Internal Privoxy Error Privoxy encountered an error while processing your request: Could not load template file no-server-data or one of its included components. Please contact your proxy administrator. If you are the proxy administrator, please put the required file(s)in the (confdir)/templates directory. The location of the (confdir) directory is specified in the main Privoxy config file. (It's typically the Privoxy install directory).

I tried to synchronize the time, but it didn't work. I used Singapore's proxy service.What shall I do? thank you

Reproduction

Deploy service and request remotely

System Info

System:
    OS: Linux 4.18 CentOS Linux 8 (Core)
    CPU: (2) x64 Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
    Memory: 134.02 MB / 757.20 MB
    Container: Yes
    Shell: 4.4.19 - /bin/bash
  Binaries:
    Node: 18.15.0 - /usr/local/bin/node
    npm: 9.5.0 - /usr/local/bin/npm

Used Package Manager

npm

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

sakamataz avatar Mar 08 '23 05:03 sakamataz

I'm sorry I haven't encountered a similar situation. It sounds like the network environment is causing the problem?

ddiu8081 avatar Mar 08 '23 15:03 ddiu8081

generate.ts 把这个22行时间判断删掉试试

zhuidreamweaver avatar Mar 10 '23 09:03 zhuidreamweaver

Seems to need to open a proxy. https://github.com/ddiu8081/chatgpt-demo/issues/34

yzh990918 avatar Mar 11 '23 04:03 yzh990918

@ztreble 打开这个文件 /dist/server/chunks/pages/all.xxxx.js

搜索 digestMessage,改成:

async function digestMessage(message) {
  return sha256(message).toString();
}

我在本地部署时,必须这么改,否则会因为 crypto 未导入直接报错。

qgy18 avatar Mar 11 '23 13:03 qgy18

@ztreble打开这个文件 /dist/server/chunks/pages/all.xxxx.js

搜索digestMessage,改成:

async function digestMessage(message) {
  return sha256(message).toString();
}

我在本部署时,必须这样改,否则会因为crypto未导入直接报错。

这对我有用

mdhduwewe avatar Mar 14 '23 15:03 mdhduwewe

@ztreble 打开这个文件 /dist/server/chunks/pages/all.xxxx.js

搜索 digestMessage,改成:

async function digestMessage(message) {
  return sha256(message).toString();
}

我在本地部署时,必须这么改,否则会因为 crypto 未导入直接报错。

同样对我有用

zhuozhiyongde avatar Mar 16 '23 17:03 zhuozhiyongde