Skip to content

--api-proxy is ignore when signing #3413

Open

Description

@fopinappb

I'm likely doing something wrong as I cannot find any issue/link on this but I'm not able to use --api-proxy behind a proxy.

  • I've tried using node 18, 20 and 22 (in case it was a edge case in fetch) but all of them simply ignore the proxy specified in --api-proxy.
  • I've tried web-ext 8.3.0 and latest (8.6.0)
  • I'm calling it as npx web-ext sign --channel unlisted -c .web-config.mjs --api-proxy http://127.0.0.1:9990 -v
  • 9990 is just a listening netcat that never gets any connection
  • I've updated submit-addon.js locally to console.log the agent and it is created as expected (as HttpsProxyAgent) and passed to fetch. Just fetch never makes use of it...?

(Update) After downgrading to 7.11.0 I can sign via proxy but it fails again if I use --use-submission-api to force the new v8 behavior

Activity

  1. Rob--W commented on May 22, 2025

    @Rob--W
    Member

    Could you share the verbose logs of web-ext ? (add -v to the command line).

    And what proxy application and OS are you using?

  2. willdurand commented on May 22, 2025

    @willdurand
    Member

    It could be a regression from #3217, would the proxy work with web-ext v8.2.0 by chance?

  3. fopina commented on May 22, 2025

    @fopina

    @Rob--W I tried on both macOS and Linux. Not sure what you mean by “proxy application”: I pass a proxy url in the flag and it didn’t use it at all (confirmed by using plain netcat on that port - no incoming connections)

    @willdurand I don't have the setup at the moment to retest but 7.11.0 also failed if using submission API (which becomes the only method in 8)

  4. afmhenry commented on Oct 17, 2025

    @afmhenry

    It could be a regression from #3217, would the proxy work with web-ext v8.2.0 by chance?

    This is the reason. Undici doesnt handle proxies in the same way as node-fetch does. Staying on 8.2 until it is fixed...

    (I tried to fix it locally but wasnt able to--my understanding on undici is minimal and patience non-existent..)

  5. NUAAwqy commented on Oct 13, 2026

    @NUAAwqy

    I am investigating this with a local HTTP CONNECT proxy and the current source. The signing client still passes an https-proxy-agent via agent to the native fetch implementation. I plan to add a regression that checks actual proxy traffic, then use the supported dispatcher interface while preserving multipart uploads and streamed downloads. Implementation and test execution are assisted by Codex.

  6. babestay216216-wq commented on Oct 22, 2026

    @babestay216216-wq

    I'm likely doing something wrong as I cannot find any issue/link on this but I'm not able to use --api-proxy behind a proxy.

    • I've tried using node 18, 20 and 22 (in case it was a edge case in fetch) but all of them simply ignore the proxy specified in --api-proxy.
    • I've tried web-ext 8.3.0 and latest (8.6.0)
    • I'm calling it as npx web-ext sign --channel unlisted -c .web-config.mjs --api-proxy http://127.0.0.1:9990 -v
    • 9990 is just a listening netcat that never gets any connection
    • I've updated submit-addon.js locally to console.log the agent and it is created as expected (as HttpsProxyAgent) and passed to fetch. Just fetch never makes use of it...?

    (Update) After downgrading to 7.11.0 I can sign via proxy but it fails again if I use --use-submission-api to force the new v8 behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions