Callback event error when testing locally
Posted: Thu Mar 05, 2015 5:38 pm
I'm trying to test the Hand event callback locally using Node.js as the server. It is running locally on port 8080. The Poker Mavens (Lite) server is running on a Windows Server 2008 on AWS EC2.
I have configured my firewall with Inbound and Outbound Rules for the PokerMavens Server. I can hit the API with no problem.
On my Node.js server I have a route set to accept POST events from /pmcb (this is the callback url of course).
I have Callback Events enabled with the URL pointing to http://localhost:8080/pmcb. I also have Hand event, Login event, and Logout event all set to Yes. But when I test to see if the callback is being fired I can see in my logs that I'm getting an error "Callback event error: Socket Error # 10061 Connection refused."
When I test the callback url running on the production server on Heroku (cloud platform for web apps), I can see that I'm receiving the parameters being returned from the Poker Mavens Server and no errors in the log.
It would be ideal to be able to test the callbacks locally. I feel like it's a firewall issue, but I can't figure out what I'm doing wrong.
Any help or advice would be appreciated!
Thanks,
Harry
I have configured my firewall with Inbound and Outbound Rules for the PokerMavens Server. I can hit the API with no problem.
On my Node.js server I have a route set to accept POST events from /pmcb (this is the callback url of course).
I have Callback Events enabled with the URL pointing to http://localhost:8080/pmcb. I also have Hand event, Login event, and Logout event all set to Yes. But when I test to see if the callback is being fired I can see in my logs that I'm getting an error "Callback event error: Socket Error # 10061 Connection refused."
When I test the callback url running on the production server on Heroku (cloud platform for web apps), I can see that I'm receiving the parameters being returned from the Poker Mavens Server and no errors in the log.
It would be ideal to be able to test the callbacks locally. I feel like it's a firewall issue, but I can't figure out what I'm doing wrong.
Any help or advice would be appreciated!
Thanks,
Harry