iatacodes / nodejs-sdk Goto Github PK
View Code? Open in Web Editor NEWNodeJS Library for AirLabs API
Home Page: https://airlabs.co
License: MIT License
NodeJS Library for AirLabs API
Home Page: https://airlabs.co
License: MIT License
I think #1 is happening again. I'm getting the same error.
Hi,
I am trying to use the SDK in my react app. I use it in that way:
const IC = require('iatacodes');
const ic = new IC(iataCodesApiKey);
ic.api('autocomplete', {query: 'vie'}, function(error, response) {
console.log(error);
console.log(response);
});
It returns "Undefined".
Error Text:
Error: empty response
at Request._callback (index.js:36)
at self.callback (request.js:220)
at Request.push../node_modules/events/events.js.EventEmitter.emit (events.js:72)
at Request.push../node_modules/request/request.js.Request.onRequestError (request.js:963)
at push../node_modules/stream-http/lib/request.js.module.exports.push../node_modules/events/events.js.EventEmitter.emit (events.js:72)
at request.js:162
What do I do wrong? Or has it an error?
Thanks for response.
When using this package as is (which uses https to talk to iatacode.org), I see the following error:
Error: Error: unable to verify the first certificate
When directly trying to curl, I get the following error:
curl 'https://iatacodes.org/api/v6/autocomplete?query=lisbon&api_key=API_KEY
curl: (60) Peer's Certificate issuer is not recognized.
....
Looks like there is an issue with certs on the server side?
Madhu
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.