question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while installing binary: Checksum rejected

See original GitHub issue

Software versions

Please provide at least OS and version of pact-js

  • OS: _e.g. Mac OSX Catalina 10.15.5
  • Consumer Pact library: “@pact-foundation/pact”: “^9.15.5”,
  • Node Version: v14.15.4

Issue Checklist

Please confirm the following:

  • [ x] I have upgraded to the latest
  • [ x] I have the read the FAQs in the Readme
  • [ x] I have triple checked, that there are no unhandled promises in my code
  • I have set my log level to debug and attached a log file showing the complete request/response cycle
  • For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem

Expected behaviour

the pact_binary_location is set to company specifik location and download from there works fine !

Actual behaviour

Checksum error when installing binary on both OSX and Linux build servers

Error while installing binary: Checksum rejected for file ‘pact-1.88.49-osx.tar.gz’ with checksum pact-1.88.49-osx.tar.gz.checksum

Steps to reproduce

How can someone else reproduce this bug? Change the pact_binary_location for all 9.* versions

For extra bonus points and internet karma, provide a repository, gist or reproducible code snippet so that we can test the problem.

We recommend forking the project and modifying a relevant example in the examples folder

Relevant log files

Please ensure you set logging to DEBUG and attach any relevant log files here (or link to a gist).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
BrendonReedcommented, Sep 27, 2021

Hi, I experienced a similar issue, so just jumping in here to add what I found.

The issue for me was definitely the proxy – I tracked it down to the switch from requests to needle for doing the download. I then replicated with a simple request vs needle file download. My corporate proxy worked fine with Request, but not with Needle. My guess is that it has to do with http vs https, something like the proxy is plain http even for https. Probably not an uncommon scenario for a corporate proxy.

If you’re bundling the binaries then I suppose that would solve my issue as well, but I’m not sure of the timeline. Because most people don’t use pact-js-core directly, is it simple to provide me a link to an issue or something that’s tracking so I can get a better picture of when it might be available to me?

1reaction
TimothyJonescommented, Aug 24, 2021

We’re working on a permanent fix for this, by bundling the binaries with the package.

In the meantime, try opening the file in a text editor- usually it’s an error message from github or a proxy you have set up.

Also, if you’re able to try the beta release, I believe the most recent version has the binaries bundled with it. However, the release is not stable yet, so it might not suit your needs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is npm throwing the error "checksum failed while ...
Checked the path OS path variables, and the directory where node is installed. Found nothing. Tried to clean npm and uninstalling and installing...
Read more >
Pact for node - Pact (Contract Testing)
Has anyone seen this issue: ```Error while installing binary: Checksum rejected for file 'pact-1.63.0-osx.tar.gz' with checksum ...
Read more >
@pact-foundation/pact-node - npm
@pact-foundation/pact-node. TypeScript icon, indicating that this package has built-in type declarations.
Read more >
Installing a package with modified DESCRIPTION files throws ...
to install it, I failed. The error is. Warning in install.packages : cannot open compressed file 'openair/DESCRIPTION', probable reason 'No such file or ......
Read more >
Automatic netdata Updater fails - Help
Jan 10:38:30 CET 2022 : ERROR: FAILED TO UPDATE NETDATA : Static binary checksum validation failed. Stopping netdata installation and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found