chyld
chyld

Reputation: 103

Travis CI. NetworkingError: CERT_UNTRUSTED error between Node.js and AWS S3 bucket

The setup.

I'm on Node.js using the aws-sdk npm module. I have an AWS bucket on S3 and the associated access and keys. The keys are in my .travis.yml file. I'm trying to test out saving an image up to my S3 bucket from my Node.js app.

The interesting thing... it's been working for a LONG TIME on Travis, then a few days ago it just stopped working with this error:

  message: 'CERT_UNTRUSTED',
  code: 'NetworkingError',
  region: 'us-east-1',
  hostname: 'chyld-evernode-test.s3.amazonaws.com',
  retryable: true,
  time: Sat Dec 20 2014 18:35:45 GMT+0000 (UTC)

Now, it STILL works just fine on my LOCAL box and it also still works after deploy to HEROKU. My guess is something just happened on Travis which is causing my tests to fail.

Ideas?

Upvotes: 7

Views: 1157

Answers (1)

user285498
user285498

Reputation:

Looks like this is a known problem with 0.10.34:

From the second link:

this fixes a problem where connecting to AWS services would report an untrusted cert error.

From an issue in the knox repo:

Solution: downgrade to v0.10.33

Upvotes: 12

Related Questions