Forum - SIP2
- This topic has 5 replies, 3 voices, and was last updated 6 months, 2 weeks ago by Ken Lin.
- May 17, 2019 at 2:35 pm #52270Donne OclooParticipant
Title: Failing to get any response from server using node.js SIP2 library
I’m not sure if this is the right place to ask my question about my issue with getting a response from a SIP2 server so, my apologies if it’s not. I’ve asked this same question on Stackoverflow.com but I don’t know if I’m going to get any response there so, I’m posting my question here as well.
Since my post on stackoverflow has better formatting, I’m posting the link to my question.
Any help is appreciated. Thanks.May 18, 2019 at 4:29 am #52271Jim NichollsParticipant
After adding the necessary require for sip2 to the top of your code, I was able to run it and I did get a response. Of course, the response was a screen message of “Item does not exist”, but I did get a response.May 21, 2019 at 2:28 pm #52365Donne OclooParticipant
Thanks Jim for the reply. I too have the necessary require like so -> “const SIP2 = require(‘sip2’);” but I can’t get any response at all. I’ve tried my program on a different system and on a different network connection too but still had no luck getting a response from that particular server. If my code doesn’t have any problem then my guess is that the server is blocking requests from my program but is allowing requests from that testing tool which is why it only works there?May 24, 2019 at 12:01 am #52414Jim NichollsParticipant
Having eliminated your code being the cause, that leaves environmental factors. I’ve made several presumptions about your environment. Perhaps one of these presumption is wrong, and this might help us to figure out the problem.
* you have used exactly the same SIP2 server and port combination in the tool as you did in your code;
* you’ve been running the tool and code on exactly the same operating system instance (= the source IP address is identical);
* the “SIP2 server” is actually your stunnel instance between yourself and the Alma SIP2 server.May 24, 2019 at 2:35 pm #52415Donne OclooParticipant
* I have used exactly the same SIP2 server and port combination in the tool as I did in my code; (CORRECT)
* I’ve been running the tool and code on exactly the same operating system instance (= the source IP address is identical); (WRONG – I ran my code and SIP 2 tool in two different PCs)
* the “SIP2 server” is actually my stunnel instance between myself and the Alma SIP2 server.(UNSURE – The SIP 2 server I’m trying to get a response from is from a different company. Now I’m not sure if other companies use Alma for creating their own checkout systems for libraries.)November 17, 2019 at 10:04 pm #64075Ken LinParticipant
Other companies usually don’t require you to encrypt SIP2 communication
So try not going through stunnel if you are trying to establish SIP2 communication with other than Alma
- You must be logged in to reply to this topic.