Page 1 of 1

Bug when sending some notifications on ManiaHome

Posted: 17 May 2013, 13:16
by jonthekiller
Sometimes, I have an error to send several notifications on ManiaHome to a list of players. Here is the var_dump :

Code: Select all

 ["HTTPStatusCode":protected]=> int(403) ["HTTPStatusMessage":protected]=> string(9) "Forbidden" ["message":protected]=> string(0) "" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(90) "..../www/vendors/maniaplanet/Maniaplanet/WebServices/HTTPClient.php" ["line":protected]=> int(338) ["trace":"Exception":private]=> array(11) { [0]=> array(6) { ["file"]=> string(89) "..../www/vendors/maniaplanet/Maniaplanet/WebServices/ManiaHome.php" ["line"]=> int(89) ["function"]=> string(7) "execute" ["class"]=> string(34) "Maniaplanet\WebServices\HTTPClient" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> string(4) "POST" [1]=> string(32) "/maniahome/notification/private/" [2]=> array(1) { [0]=> object(Maniaplanet\WebServices\Notification)#227 (9) { ["senderName"]=> string(6) "mAactu" ["receiverName"]=> string(6) "sloxiz" ["message"]=> string(102) "$l[http://mania-actu.com/eng/articles/view/1315/C_Play_picks_up_a_Line_up]C.Play picks up a Line-up!$l" ["link"]=> string(6) "maactu" ["isPrivate"]=> bool(true) ["iconStyle"]=> string(13) "Icons128x32_1" ["iconSubStyle"]=> string(11) "ManiaPlanet" ["group"]=> NULL ["priority"]=> NULL }

Re: Bug when sending some notifications on ManiaHome

Posted: 17 May 2013, 13:17
by magnetik
You are sending your request way too quickly.
We have recently added a 8 requests/s limitation.


By the way, you should not use private notification but public notification (without receiver) for your usage.

Re: Bug when sending some notifications on ManiaHome

Posted: 17 May 2013, 13:32
by jonthekiller
For me, I would like to send one notifications for a group of users where people can discuss about the subject. My list is from all people who add their ManiaPlanet account on their ManiaActu account and check the box to receive the notifications.