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

500 Internal Privoxy Error #177

Closed
5 tasks done
ztreble opened this issue Mar 8, 2023 · 6 comments
Closed
5 tasks done

500 Internal Privoxy Error #177

ztreble opened this issue Mar 8, 2023 · 6 comments
Assignees
Labels
bug Something isn't working Deploy Node

Comments

@ztreble
Copy link

ztreble commented Mar 8, 2023

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

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

ddiu8081 commented Mar 8, 2023

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

@ddiu8081 ddiu8081 added help wanted Extra attention is needed question Further information is requested labels Mar 8, 2023
@zhuidreamweaver
Copy link

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

@yzh990918
Copy link
Member

yzh990918 commented Mar 11, 2023

Seems to need to open a proxy. #34

@qgy18
Copy link

qgy18 commented Mar 11, 2023

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

搜索 digestMessage,改成:

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

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

@mdhduwewe
Copy link

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

搜索digestMessage,改成:

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

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

这对我有用

@zhuozhiyongde
Copy link

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

搜索 digestMessage,改成:

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

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

同样对我有用

@ddiu8081 ddiu8081 self-assigned this Mar 19, 2023
@ddiu8081 ddiu8081 added Deploy Node bug Something isn't working and removed help wanted Extra attention is needed question Further information is requested labels Mar 19, 2023
ddiu8081 added a commit that referenced this issue Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Deploy Node
Projects
None yet
Development

No branches or pull requests

7 participants