403 Error while downloading dependency

Issue #18436 resolved
Juan Puelpan
created an issue

Hello!

I'm getting this error while trying to install the sharp dependency on a pipeline. It started to happen this like 8 hours ago.

When I try to download that file https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz it works without problem.

> sharp@0.22.0 install /opt/atlassian/pipelines/agent/build/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz
/opt/atlassian/pipelines/agent/build/node_modules/sharp/install/libvips.js:86
          throw new Error(`Status ${response.statusCode}`);
          ^
Error: Status 403
    at /opt/atlassian/pipelines/agent/build/node_modules/sharp/install/libvips.js:86:17
    at f (/opt/atlassian/pipelines/agent/build/node_modules/once/once.js:25:25)
    at ClientRequest.protocol.request.res (/opt/atlassian/pipelines/agent/build/node_modules/simple-get/index.js:63:5)
    at Object.onceWrapper (events.js:277:13)
    at ClientRequest.emit (events.js:189:13)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
    at TLSSocket.socketOnData (_http_client.js:442:20)
    at TLSSocket.emit (events.js:189:13)
    at addChunk (_stream_readable.js:284:12)

Comments (6)

  1. Ake Tangkananond

    Got the same issue too.

    Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
    Arguments: 
    Directory: /opt/atlassian/pipelines/agent/build/node_modules/sharp
    Output:
    info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz
    /opt/atlassian/pipelines/agent/build/node_modules/sharp/install/libvips.js:86
              throw new Error(`Status ${response.statusCode}`);
              ^
    
  2. Dan Dubinsky

    Got the same issue. Found a work around here for Sharp:

    https://github.com/lovell/sharp/issues/1632#issuecomment-477686985

    Now I'm getting the same error on this file

    https://yt-dl.org/downloads/latest/youtube-dl

    I can run the same build code manually from my laptop and it works fine.

    My conclusion is that some network setting at Bitbucket changed yesterday that is causing npm downloads from external sites to fail.

    For us this is a show stopper. Our CI pipeline is completely disabled.

  3. Dan Dubinsky

    For anybody else who is stuck on this we were able to resolve the issue using a different build container. We changed the container Bitbucket was using for builds from node:9.3 to node:10.13.0 and was able to build.

    I have to say I'm very disappointed with Bitbucket support on this forum. Blocking issues are sitting here for days or months with no responses at all.

  4. Aneita Yang

    Hi everyone,

    Thanks for reaching out. This issue has since been resolved by Github.

    I apologise for the inconvenience caused by this issue and the delay in providing a response here. We’re continually trying to improve our processes in reviewing and replying to issues, but sometimes we have an influx of tickets and a long queue to get through.

    Aneita

  5. Log in to comment