Skip to content

Errors installing @ampproject/toolbox-optimizer@2.4.0 behind proxy #832

@portenez

Description

@portenez
npm install --save @ampproject/toolbox-optimizer@2.4.0

node-fetch does not read the http_proxy variables, so there are issues when installing in networks where a proxy is required.

See node-fetch issue about this

@ampproject/toolbox-optimizer@2.4.0 postinstall /home/suprauser/workspace/wss_wss_nextjs-demo_PR-39/node_modules/@ampproject/toolbox-optimizer

AMP Optimizer ERROR Could not fetch validator rules { FetchError: request to https://cdn.ampproject.org/v0/validator.json failed, reason: connect ETIMEDOUT 172.217.169.33:443
     at ClientRequest.<anonymous> (/home/suprauser/workspace/node_modules/node-fetch/lib/index.js:1455:11)
     at ClientRequest.emit (events.js:189:13)
     at TLSSocket.socketErrorListener (_http_client.js:392:9)
     at TLSSocket.emit (events.js:189:13)
     at emitErrorNT (internal/streams/destroy.js:82:8)
     at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
     at process._tickCallback (internal/process/next_tick.js:63:19)

   message:
    'request to https://cdn.ampproject.org/v0/validator.json failed, reason: connect ETIMEDOUT 172.217.169.33:443',
   type: 'system',
   errno: 'ETIMEDOUT',
   code: 'ETIMEDOUT' }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions