Skip to content

SSL Validation Issue (Error -40) to deny.io #334

@johnnyman727

Description

@johnnyman727

Originally reported on the forums, sending a request to deny.io throws an error on Tessel but completes in Node. Code and Error are below.

https.js

var https = require('https');

var options = {
  hostname: 'deny.io',
  port: 443,
  path: '/',
  method: 'GET'
};

var req = https.request(options, function(res) {
  console.log("statusCode: ", res.statusCode);
  console.log("headers: ", res.headers);

  res.on('data', function(d) {
    process.stdout.write(d);
  });
});

req.end();

req.on('error', function(e) {
  console.error(e);
});

Response:

➜  sandbox  tessel run https.js 
TESSEL! Connected to TM-00-04-f000da30-00584f36-4aa02586.
INFO Bundling directory /Users/Jon/Work/technical/sandbox (~2.75 MB)
INFO Deploying bundle (3.53 MB)...
INFO Running script...
Error: Could not validate SSL request (error -40)
stack traceback:
    [T]:src/colony/modules/dns.js:30: in function <[T]:src/colony/modules/dns.js:17>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions