[Fixed] Error 500 if Player has no Tags

Trackmania Forever public API and its open source PHP SDK.

Moderator: NADEO

Post Reply
User avatar
m4rcel
Posts: 653
Joined: 15 Jun 2010, 11:12
Contact:

[Fixed] Error 500 if Player has no Tags

Post by m4rcel » 09 May 2011, 13:52

I found out another bug, but it seems to be on Server side this time.

It seems as if an user has no Tags, something is getting wrong on the server, as beginning with the second request an Error 500 is returned instead of an empty array.

My code is not very complex:

Code: Select all

	$tmPlayers = new TrackMania_Players(TMWS_USER, TMWS_PASS);
	$tags = $tmPlayers->getTags($login);
	echo "This user has ".count($tags)." Tags.<br>\n";
On first script call, "This user has 0 Tags." is outputted correctly, but when calling it another time, there is only the TrackMania_Exception containing the 500 error left. (All later calls, too, will throw an Exception.)

If the requested player has tags, all is working fine, so it seems that the "0-tags" are causing this error. Whether the player is TMUF or TMNF seems not to have any influence on this error. (Can TMNF players have Tags? Idk ^^)
Last edited by m4rcel on 09 May 2011, 14:23, edited 1 time in total.
ImageImage
Image

User avatar
w1lla
Posts: 2377
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Error 500 if Player has no Tags

Post by w1lla » 09 May 2011, 13:59

It might happen its just a error that can't be reported very well.

Its almost the same exception error as i provided in http://forum.maniaplanet.com/viewtopic. ... 212#p19738.
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs

User avatar
gouxim
Nadeo
Nadeo
Posts: 1188
Joined: 14 Jun 2010, 17:20

Re: Error 500 if Player has no Tags

Post by gouxim » 09 May 2011, 14:19

Thanks for the report. It was indeed a server error when a players does not have tags. It's just been fixed.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

User avatar
m4rcel
Posts: 653
Joined: 15 Jun 2010, 11:12
Contact:

Re: Error 500 if Player has no Tags

Post by m4rcel » 09 May 2011, 14:23

It is working fine now, thank you ;)
ImageImage
Image

Post Reply

Return to “Trackmania Forever Web Services”

Who is online

Users browsing this forum: No registered users and 2 guests