ericgjackson / slumbot2019

Implementations of CFR for solving a variety of Holdem-like poker games
MIT License
133 stars 31 forks source link

Unable to access the API via sample_api python script. #38

Open aneeshbharath opened 4 months ago

aneeshbharath commented 4 months ago

I was just exploring the sample_api.py script, but i am unable to make any request. I get a exception as "Connection aborted.', ConnectionResetError(54, 'Connection reset by peer')"

ericgjackson commented 4 months ago

I can take a look at this this weekend.

ericgjackson commented 4 months ago

Not sure what's going on. sample_api.py works for me from my machine. Can you try the following curl command?

curl -i -X POST -d '{}' -H "Content-Type: application/json" https://slumbot.com/api/new_hand

This might help verify if you can make an HTTP request from your machine to the Slumbot server.