d3sd1 / OnLoL-Riot-API

Riot api base for PHP. Updated constantly and almost without bugs!
2 stars 2 forks source link

Error on $api->currentGame when not in game #9

Closed SeaRoth closed 7 years ago

SeaRoth commented 7 years ago

Description:

Steps to reproduce:

  1. Check currentGame with anyone (not in game)
  2. Get error

Results:

Expected Results:

Notes:

Images:

error.log: image

Regular Log File: image

SeaRoth commented 7 years ago

The main problem I am seeing is $api->currentGame is returning the URL && API key just used.

(callback.php) Calling $api->currentGame

image

(index.php) ajax function that checks for success && json

image

Console.log value from the above ^^ try / catch

image

SeaRoth commented 7 years ago

Same thing happens for league && stats

image

d3sd1 commented 7 years ago

I'm taking a look. Will upload patch tomorrow. Thank you for notifying!

d3sd1 commented 7 years ago

Just solved it 📦 Will upload patch later, if I dont wait for stats code.