公司网络无法访问海外站点,如何解决?

Open
#455 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
nodejs
Domain
tooling

Research direction

Reproduce the installation with npm install pulsar-client@1.13.1 and the node-pre-gyp download URL shown in the report. Check how the package currently obtains the prebuilt archive and whether a configurable mirror is already supported. Done should be a documented, reliable way to use an alternative download site for networks that cannot reach archive.apache.org.

Written by the indexing model from the issue text.

Description

npm install pulsar-client@1.13.1
报错:
npm error node-pre-gyp ERR! install request to https://archive.apache.org/dist/pulsar/pulsar-client-node/pulsar-client-node-1.13.1/napi-linux-glibc-x64.tar.gz failed, reason: write EPROTO 40D8E5B8697F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:

应该是公司网络无法访问海外站点:https://archive.apache.org。

执行:wget https://archive.apache.org/dist/pulsar/pulsar-client-node/pulsar-client-node-1.13.1/napi-linux-glibc-x64.tar.gz
报错:
--2026-02-02 09:47:11-- https://archive.apache.org/dist/pulsar/pulsar-client-node/pulsar-client-node-1.13.1/napi-linux-glibc-x64.tar.gz
正在解析主机 archive.apache.org (archive.apache.org)... 65.108.204.189, 2a01:4f9:1a:a084::2
正在连接 archive.apache.org (archive.apache.org)|65.108.204.189|:443... 已连接。
GnuTLS: 收到一个未预期的 TLS 数据包。
无法建立 SSL 连接。

请问对于这种无法访问海外站点的情况,要如何解决?
能否支持设置为国内站点。

Dominant language
C++
Stars
164
Forks
99
Avg merge
5d 18h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/pulsar-client-node

All issues in apache/pulsar-client-node

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.