× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



What version of Node.js?

Can you post your code so we know exactly which example you're talking
about?

FWIW, if you're using Node.js v6.x then I'd upgrade to Node.js v8.x and
work through issues with that version. https://github.com/nodejs/Release

Aaron Bartell
IBM i hosting, starting at $157/month. litmis.com/spaces


On Thu, Mar 29, 2018 at 2:27 PM, Kevin Nunn <nunn.kevin@xxxxxxxxx> wrote:

I am researching db2i and itoolkit by starting with IBM's examples at
https://www.ibm.com/developerworks/ibmi/library/i-native-js-app-ibmi-with-
nodejs/
at not having much luck.

The SQL part of the script is connecting to the DB2 server, but any "Select
* From library/db" results in an empty brackets []. If I send query "VALUES
current date", I do get [{"00001":"2018-03-29"}] back. If I put in bad
credentials, I do get auth errors, so it seems to be connecting to the
server.

The same queries work fine from STRSQL.

Also the CL part of the example just returns

Error: SQLSTATE=PAERR SQLCODE=-1 SQLDescribeParam() failed.
at Error (native)

I am new to nodejs, the plan was to find examples for the iSeries, watch
them work, then see how the work and start from there.

Also wondering if my other issue might have some relation to this problem
(see "Broken npm?" thread in OpenSource).

Thanks

Kev

--
*Kevin Nunn <https://about.me/kevinnunn>*
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.