ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

NodeJs - Postman

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NodeJs - Postman

    Hello,
    Does anyone know how to configure Postman from a local Pc to call NodeJS methods installed on Ibm i.

    I.e.



    I get Error: connect ECONNREFUSED as400:10901 , I presume because I need to login first.

    Thank you
    Giovanni

  • #2
    ECONNREFUSED means that there isn't a program listening for connections on that port number or address. Typically: the http server isn't running.

    Comment


    • #3
      Thank you Scott for your reply.
      I made it working, it was my fault.
      In order to fix it, I had to run NodeJs from QSH in interactive mode, so I could have access to all logs.
      Anyway I runNodeJs at qbatch subsystem start as a prestarted job and I can't have access to its log.
      Is there a way to have access to console log when NodeJs is started in batch mode?
      Attached Files

      Comment


      • #4
        When you call your nodejs script in QSH you can redirect the STDOUT and STDERR into a file like:
        Code:
        node your.js > info.log 2> error.log

        Comment


        • #5
          Thank you Andreas, it works absolutely fine now.

          Comment

          Working...
          X