I'm not quite sure what's going on, but I think there's some change to the callbacks?
I was investigating why there wasn't any SMS being sent out when a tournament finished. I can see that the last time it worked was December 24th. After that it hasn't worked. However, my code hasn't changed since November 2nd. I have a callback.php running on a web-server which the pmavens server sends callbacks to. I'm using your example code as starting point and then expanded from there. So on TourneyFinish, I fire off an API call with :
Code: Select all
$tmpTrnyName = $_POST["Name"];
$tmpTrnyTime = $_POST["Time"];
$date = explode(" ", $tmpTrnyTime);
$params = array("Command" => "TournamentsResults", "Name" => $tmpTrnyName, "Date" => $date[0]);
$api = Poker_API($params);
and I have some debug code so this part works. However, when I check the callback.log on my web server I see this:
Code: Select all
Event = TourneyFinish
Name = 500kr Sit'n'Go NLHE
Number = 101
Time = 2023-01-03 22:45:23
CB DEBUG, key - value : 0 - Tournament=500kr Sit'n'Go NLHE
CB DEBUG, output_arrayArray
(
)
Event = TourneyFinish
Name = 500kr Sit'n'Go NLHE
Number = 101
Time = 2023-01-03 22:45:23
CB DEBUG, key - value : 0 - Tournament=500kr Sit'n'Go NLHE
CB DEBUG, output_arrayArray
(
)
Event = Balance
Player = ***
Change = -5
Balance = 3606
Source = Atlantis #4 (5-5 Dealer's Choice) rebuy
Time = 2023-01-03 22:45:34
(The CB debug lines are just debug info for me)
while Callback log on pmavens server this:
Code: Select all
{"Event":"Hand","Hand":"39227-139","Type":"Tourney","Name":"500kr Sit'n'Go NLHE","Table":"1","Time":"2023-01-03 22:45:23"}
{"Event":"TourneyFinish","Name":"500kr Sit'n'Go NLHE","Number":"101","Time":"2023-01-03 22:45:23"}
{"Event":"Balance","Player":"Steinardo79","Change":"-5","Balance":"3606","Source":"Atlantis #4 (5-5 Dealer's Choice) rebuy","Time":"2023-01-03 22:45:34"}
and then we have the event log saying:
Code: Select all
2023-01-03 22:45:23|House|Tourney -2250 balance 0 (*** prize from 500kr Sit'n'Go NLHE)
2023-01-03 22:45:24|API|TournamentsResults from ***
2023-01-03 22:45:24|API|TournamentsResults from ***
2023-01-03 22:45:34|Account|*** -5 balance 3606 (Atlantis #4 (5-5 Dealer's Choice) rebuy)
(2 API calls since we get the TourneyFinish twice)
and finally the error log:
Code: Select all
2023-01-03 22:45:24|Callback event error: HTTP/1.1 500 Internal Server Error
2023-01-03 22:45:34|Callback events resumed
So I'm not quite sure why it sends a 500 when it actually sent it twice?
This post might be worthy of a thread on its own, considering my 1st post in this thread was about incorrect cash game net amount but I suspect they're related.