Tustin / fortnite-php

A PHP wrapper for the official Fortnite API
MIT License
51 stars 26 forks source link

User not found #25

Open spectreDeveloper opened 6 years ago

spectreDeveloper commented 6 years ago

hi, i still use this api with php and get this error when search someone users. Fatal error: Uncaught exception 'Fortnite\Exception\UserNotFoundException' with message 'User NAMEPLAYER was not found.' in /web/htdocs/src/vendor/tustin/fortnite-php/src/Stats.php:79 Stack trace: #0 /web/htdocs/test.php(14): Fortnite\Stats->lookup('NamePlayer') #1 {main} thrown in /web/htdocs/src/vendor/tustin/fortnite-php/src/Stats.php on line 79 i get this error only with this api, if i use a web fortnite tracker finded on google, it' works.

Tustin commented 6 years ago

Not sure if you did this for the sake of anonymity, but you have NAMEPLAYER as a string when searching for a user. Was that intentional?

spectreDeveloper commented 6 years ago

yes, is intentional. thanks for reply, you have an idea of problem?

Tustin commented 6 years ago

Not totally sure at the moment. I'll have to take a look to see if something changed with the API. Are these brand new accounts you're trying to search for?

spectreDeveloper commented 6 years ago

no, not are new account, now send you a few nickname ok? gamer89076 PSN/PC

spectreDeveloper commented 6 years ago

Michele_Uchiha89 PSN

spectreDeveloper commented 6 years ago

if u need other information tell me, thanks tustin

spectreDeveloper commented 6 years ago

xXMarionzoloXx MOBILE (same server as PC think)

spectreDeveloper commented 6 years ago

GT-JulMer PSN

ermos commented 6 years ago

The only one I found via fortnitetracker or my tracker is the last GT-JulMer. on your error you are looking for the profile NamePlayer and this one does not exist so it is logical that it returns you an error, I do not understand your problem?

mlcsthor commented 5 years ago

I have a similar problem, I can't find the statistics of the player "Zelenion" with the API whereas I can find it on Fortnite Tracker (it's a PC only player)