On Wednesday, April 19, 2017 at 2:42:02 AM UTC+2, SC wrote: > > Hi, > > I have a nodejs application, in which I am making a call to another rest > service. > > When I directly call that rest service from a simple request response node > application, it works just fine from the command line. > > But when I make the same call from the application mentioned above, I do > not get any response. > > What could be going wrong? > > Without any code, it's hard to say. What are you making the call with? Does your simple request/response node app work as a cli module or how did you do it? Can you call the other rest API from node REPL?
The problem could be in your code, or it could be that some of the libraries you required that overwrote or changed functionalities you use. If you have that working simple req/res node app, can you make it a module? Super simple module - just export a "run" function, and then call that module/function from your main app - just to see what's going on. If this works from, say, cli, but not from your app, it's most likely that your main app changes some functionality that you use. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/3f81aaee-1bae-4566-80b0-10267dca4b8f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
