Matchmaking API KO?

Moderator: NADEO

Post Reply
User avatar
jonthekiller
Translator
Translator
Posts: 4702
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Matchmaking API KO?

Post by jonthekiller »

Hello,

I'm trying to setup a matchmaking server for Combo based on the documentation (https://doc.maniaplanet.com/dedicated-s ... atchmaking) but it seems that the Matchmaking API is not available.

If I check the URL https://v4.live.maniaplanet.com/ingame/ ... atchmaking, I have a "404 Not found" error.

In the server logs of the lobby, I have

Code: Select all

[ERROR] Matchmaking HTTP Error 403.
The URL is still the good one or it's just that the file is missing?
Image
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Matchmaking API KO?

Post by Eole »

The url is correct. If you test with a complete route like

Code: Select all

https://v4.live.maniaplanet.com/ingame/public/matchmaking/lobby-server/matchmaking-live
you'll receive a 400/405 instead of a 404.

You will receive a 403 on the lobby server for around a minute after starting the server. But it should disappear quickly once the matchmaking API can access the lobby info on the master server. Did the error persist on your side ?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
jonthekiller
Translator
Translator
Posts: 4702
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: Matchmaking API KO?

Post by jonthekiller »

After one hour, still the same.

Code: Select all

Script 'Mode:ComboPro': 4954420> [API] Request: POST /lobby-server/matchmaking-live
<!--

    {
        "lobby": "drakoservmp211",
        "matchservers": [
            "DrakoServMp212","DrakoServMp213"
        ],
        "gamemode": "ComboPro",
        "titleid": "SMStormCombo@nadeolabs",
        "format": [2, 2],
        "players": [

            {
                "login": "jonthekiller",
                "ladderpoints": 20652,
                "readytime": 55640,
                "allies": []
            }
        ],
        "waitinglogins": [

        ],
        "cancelers": [

        ],
        "penalties": [

        ]
    }
-->
Script 'Mode:ComboPro': 4954500> [ERROR] Matchmaking HTTP Error 403.
Image
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Matchmaking API KO?

Post by Eole »

I did a test with one lobby + two match servers and it seems to work fine. I get a few 403 at the beginning for 1~2 minutes but after that everything seems fine.

I used the following match settings for the lobby :

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<playlist>
	<gameinfos>
		<script_name>Modes\ShootMania\Combo\ComboPro.Script.txt</script_name>
		<comment></comment>
	</gameinfos>

	<filter>
		<random_map_order>0</random_map_order>
	</filter>

	<mode_script_settings>
		<!-- Default : <setting name="S_ChatTime" type="integer" value="10"/> -->
		<!-- Default : <setting name="S_UseClublinks" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_UseClublinksSponsors" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_NeutralEmblemUrl" type="text" value=""/> -->
		<setting name="S_ScriptEnvironment" type="text" value="development"/><!-- Default : production -->
		<!-- Default : <setting name="S_IsChannelServer" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_DelayBeforeNextMap" type="integer" value="2000"/> -->
		<!-- Default : <setting name="S_Debug_DisplayChannelProgression" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingAPIUrl" type="text" value="https://v4.live.maniaplanet.com/ingame/public/matchmaking"/> -->
		<setting name="S_MatchmakingMatchServers" type="text" value="eole_mm_match_01,eole_mm_match_02"/><!-- Default :  -->
		<setting name="S_MatchmakingMode" type="integer" value="1"/><!-- Default : 0 -->
		<!-- Default : <setting name="S_MatchmakingRematchRatio" type="real" value="-1"/> -->
		<!-- Default : <setting name="S_MatchmakingRematchNbMax" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_MatchmakingVoteForMap" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingProgressive" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingWaitingTime" type="integer" value="20"/> -->
		<!-- Default : <setting name="S_MatchmakingEnablePenalty" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_LobbyRoundPerMap" type="integer" value="60"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerPerRound" type="integer" value="6"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerWait" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerTime" type="integer" value="8"/> -->
		<!-- Default : <setting name="S_LobbyDisplayMasters" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_LobbyDisableUI" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_LobbyAggressiveTransfer" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_KickTimedOutPlayers" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_MatchmakingErrorMessage" type="text" value="Â’An error occured in the matchmaking API. If the problem persist please try to contact this server administrator."/> -->
		<setting name="S_MatchmakingLogAPIError" type="boolean" value="1"/><!-- Default : 0 -->
		<setting name="S_MatchmakingLogAPIDebug" type="boolean" value="1"/><!-- Default : 0 -->
		<setting name="S_MatchmakingLogMiscDebug" type="boolean" value="1"/><!-- Default : 0 -->
		<!-- Default : <setting name="S_ProgressiveActivation_WaitingTime" type="integer" value="180000"/> -->
		<!-- Default : <setting name="S_ProgressiveActivation_PlayersNbRatio" type="integer" value="1"/> -->
		<!-- Default : <setting name="S_AutoManageAFK" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_LobbyInstagib" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_NbPlayersPerTeamMax" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_NbPlayersPerTeamMin" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_PointsLimit" type="integer" value="3"/> -->
		<!-- Default : <setting name="S_RoundTimeLimit" type="integer" value="300"/> -->
		<!-- Default : <setting name="S_WarmUpDuration" type="integer" value="90"/> -->
		<!-- Default : <setting name="S_AllowUnbalancedTeams" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_UseArmorReduction" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_ArmorMax" type="integer" value="4"/> -->
		<!-- Default : <setting name="S_SpawnProtectionTime" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_RespawnAmmo" type="real" value="0.5"/> -->
	</mode_script_settings>

	<startindex>0</startindex>
	<map>
		<file>ShootMania\Lobby\Lobby - Heracles.Map.Gbx</file>
	</map>
	<map>
		<file>ShootMania\Lobby\Lobby - InMyBunk.Map.Gbx</file>
	</map>
	<map>
		<file>ShootMania\Lobby\Lobby - ThePit.Map.Gbx</file>
	</map>
</playlist>
And for the match :

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<playlist>
	<gameinfos>
		<script_name>Modes\ShootMania\Combo\ComboPro.Script.txt</script_name>
		<comment></comment>
	</gameinfos>

	<filter>
		<random_map_order>0</random_map_order>
	</filter>

	<mode_script_settings>
		<!-- Default : <setting name="S_ChatTime" type="integer" value="10"/> -->
		<!-- Default : <setting name="S_UseClublinks" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_UseClublinksSponsors" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_NeutralEmblemUrl" type="text" value=""/> -->
		<setting name="S_ScriptEnvironment" type="text" value="development"/><!-- Default : production -->
		<!-- Default : <setting name="S_IsChannelServer" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_DelayBeforeNextMap" type="integer" value="2000"/> -->
		<!-- Default : <setting name="S_Debug_DisplayChannelProgression" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingAPIUrl" type="text" value="https://v4.live.maniaplanet.com/ingame/public/matchmaking"/> -->
		<setting name="S_MatchmakingMatchServers" type="text" value="eole_mm_match_01,eole_mm_match_02"/><!-- Default :  -->
		<setting name="S_MatchmakingMode" type="integer" value="2"/><!-- Default : 0 -->
		<!-- Default : <setting name="S_MatchmakingRematchRatio" type="real" value="-1"/> -->
		<!-- Default : <setting name="S_MatchmakingRematchNbMax" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_MatchmakingVoteForMap" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingProgressive" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingWaitingTime" type="integer" value="20"/> -->
		<!-- Default : <setting name="S_MatchmakingEnablePenalty" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_LobbyRoundPerMap" type="integer" value="60"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerPerRound" type="integer" value="6"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerWait" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerTime" type="integer" value="8"/> -->
		<!-- Default : <setting name="S_LobbyDisplayMasters" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_LobbyDisableUI" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_LobbyAggressiveTransfer" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_KickTimedOutPlayers" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_MatchmakingErrorMessage" type="text" value="Â’An error occured in the matchmaking API. If the problem persist please try to contact this server administrator."/> -->
		<setting name="S_MatchmakingLogAPIError" type="boolean" value="1"/><!-- Default : 0 -->
		<setting name="S_MatchmakingLogAPIDebug" type="boolean" value="1"/><!-- Default : 0 -->
		<setting name="S_MatchmakingLogMiscDebug" type="boolean" value="1"/><!-- Default : 0 -->
		<!-- Default : <setting name="S_ProgressiveActivation_WaitingTime" type="integer" value="180000"/> -->
		<!-- Default : <setting name="S_ProgressiveActivation_PlayersNbRatio" type="integer" value="1"/> -->
		<!-- Default : <setting name="S_AutoManageAFK" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_LobbyInstagib" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_NbPlayersPerTeamMax" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_NbPlayersPerTeamMin" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_PointsLimit" type="integer" value="3"/> -->
		<!-- Default : <setting name="S_RoundTimeLimit" type="integer" value="300"/> -->
		<!-- Default : <setting name="S_WarmUpDuration" type="integer" value="90"/> -->
		<!-- Default : <setting name="S_AllowUnbalancedTeams" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_UseArmorReduction" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_ArmorMax" type="integer" value="4"/> -->
		<!-- Default : <setting name="S_SpawnProtectionTime" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_RespawnAmmo" type="real" value="0.5"/> -->
	</mode_script_settings>

	<startindex>0</startindex>
	<map>
		<file>ShootMania\Combo\Combo - Bounce.Map.Gbx</file>
	</map>
	<map>
		<file>ShootMania\Combo\Combo - PowerStation.Map.Gbx</file>
	</map>
	<map>
		<file>ShootMania\Combo\Combo - ProvingGrounds.Map.Gbx</file>
	</map>
	<map>
		<file>ShootMania\Combo\Combo - Triangle.Map.Gbx</file>
	</map>
</playlist>
Do you see any differences with your own settings ?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
jonthekiller
Translator
Translator
Posts: 4702
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: Matchmaking API KO?

Post by jonthekiller »

I use your config and still not good.

I let the server online: maniaplanet://#join=drakoservmp211@SMStormCombo@nadeolabs

When I have 4 players ready, I can see this:

Code: Select all

Script 'Mode:ComboPro': 241590> [SERVER] drakonia2 > Sent to match () on server : ""
241590> [SERVER] jonthekiller > Sent to match () on server : ""
241590> [SERVER] drakonia3 > Sent to match () on server : ""
241590> [SERVER] drakonia6 > Sent to match () on server : ""

[2020/03/03 20:23:34] Script 'Mode:ComboPro': 242900> [API] Request: POST /lobby-server/matchmaking-live
<!--

        {
                "lobby": "drakoservmp211",
                "matchservers": [
                        "drakoservmp212","drakoservmp213"
                ],
                "gamemode": "ComboPro",
                "titleid": "SMStormCombo@nadeolabs",
                "format": [2, 2],
                "players": [

                        {
                                "login": "drakonia2",
                                "ladderpoints": 0,
                                "readytime": 100520,
                                "allies": ["jonthekiller"]
                        },
                        {
                                "login": "jonthekiller",
                                "ladderpoints": 20652,
                                "readytime": 103580,
                                "allies": ["drakonia2"]
                        },
                        {
                                "login": "drakonia3",
                                "ladderpoints": 0,
                                "readytime": 38470,
                                "allies": ["drakonia6"]
                        },
                        {
                                "login": "drakonia6",
                                "ladderpoints": 0,
                                "readytime": 35730,
                                "allies": ["drakonia3"]
                        }
                ],
                "waitinglogins": [

                ],
                "cancelers": [

                ],
                "penalties": [

                ]
        }
-->

[2020/03/03 20:23:34] Script 'Mode:ComboPro': 243000> [ERROR] Matchmaking HTTP Error 403.
On the match servers:

Code: Select all

[2020/03/03 20:25:39] Script 'Mode:ComboPro': 362900> [API] Request: POST /match-server/live
<!--

{
        "serverlogin": "drakoservmp212",
        "status": 0,
        "matchid": -1,
        "penalty": true,
        "scores": [],
        "missingplayers": []
}
-->

[2020/03/03 20:25:39] Script 'Mode:ComboPro': [LOG]363010> [ERROR] Matchmaking HTTP Error 403.
Image
User avatar
jonthekiller
Translator
Translator
Posts: 4702
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: Matchmaking API KO?

Post by jonthekiller »

After analysis with Eole, the issue is linked to the server logins that must be declared in lowercase.
Image
User avatar
Miss
Posts: 2155
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: Matchmaking API KO?

Post by Miss »

Interesting, does that count for everything else, too? Like server config etc? Or only web API?
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
User avatar
jonthekiller
Translator
Translator
Posts: 4702
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: Matchmaking API KO?

Post by jonthekiller »

It's the first time I have an issue with Mixedcases login. So I think only the Matchmaking API has this issue.
Image
User avatar
TMarc
Posts: 15441
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Matchmaking API KO?

Post by TMarc »

Was there perhaps a case of misuse with differently cased login names? Which lead to the usage of lower case logins only...
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 2 guests