javascript - DNS issue with Ubuntu. Url request works fine in MacOSX, but fails in Ubuntu -


a nodejs script invokes require('request').post() has been written. script works fine in macosx (travis) fails in ubuntu (travis). nodejs 'https' module tested eliminate extraneous variables contribute error. did not work either.

/** * upload data coverage server */ exports.upload = function (data, callback) {     var url = server + '/v1/coverage';     request.post(url, {         form : {         type : 'grunt-appc-coverage',         data: data         },         json: true,         agentoptions: false     }, function (err, response, body) {         console.log(err, response, body);         ....         return callback(null, success_upload);     }); }; 

this logs ubuntu.

request make request https://coverage.appcelerator.com/v1/coverage  { [error: getaddrinfo enotfound coverage.appcelerator.com]  code: 'enotfound',  errno: 'enotfound',  syscall: 'getaddrinfo',  hostname: 'coverage.appcelerator.com' } undefined undefined 

the results can seen here - ubuntu - macosx (could not post link)

i don't think cname spec:

$ dig +short coverage.appcelerator.com https://454bcc35e4c9b0c030c89b311b4322330d84fa3b.cloudapp-enterprise.appcelerator.com. ec2-54-244-121-14.us-west-2.compute.amazonaws.com. 54.244.121.14 $ 

that looks broken. specifically, first cname looks broken: value should domain name, not url.

… or have not been keeping dns? :)

eta: no, i've checked few resources, , agree cname must hold domain name , nothing else. so, yeah, dns record needs replaced sensible one.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -