Skip to content

Fix HTTPX recognition issue with SOCKS5 proxy causing OpenViking crash#957

Merged
Mijamind719 merged 2 commits intovolcengine:mainfrom
Ghostknight0:fix-httpx-socksCrash
Mar 25, 2026
Merged

Fix HTTPX recognition issue with SOCKS5 proxy causing OpenViking crash#957
Mijamind719 merged 2 commits intovolcengine:mainfrom
Ghostknight0:fix-httpx-socksCrash

Conversation

@Ghostknight0
Copy link
Copy Markdown
Contributor

修复系统代理如果使用socks5://开头会导致httpx库无法识别,引起openviking崩溃的问题,在插件的index.ts排除了环境变量中all_proxy/https_proxy等

Description

Related Issue

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Additional Notes

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


wushijian seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Copy Markdown
Contributor

@jcp0578 jcp0578 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

const { ALL_PROXY, all_proxy, HTTP_PROXY, http_proxy, HTTPS_PROXY, https_proxy, ...filteredEnv } = process.env;
const env = {
...process.env,
...filteredEnv.env,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be ...filteredEnv instead of ...filteredEnv.env?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes,I fix it! sorry about that, commit twice

@Mijamind719 Mijamind719 merged commit edfa20e into volcengine:main Mar 25, 2026
@github-project-automation github-project-automation bot moved this from Backlog to Done in OpenViking project Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants