Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local DDragon error 500 #86

Open
FlorianMifsud opened this issue Aug 8, 2020 · 0 comments
Open

Local DDragon error 500 #86

FlorianMifsud opened this issue Aug 8, 2020 · 0 comments
Labels
help-wanted We could use someone's help with this problem!

Comments

@FlorianMifsud
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.
I tried to put the CDN local as in issue 66 but I have an error when I put a personalized URL, the version is equal to "last" to avoid modifying my code at each DDragon update
Expected behavior
My code:
DataDragonAPI::initByVersion(version_cdn, [ DataDragonAPI::SET_ENDPOINT => 'https://cdn.l2p.lol/riot/', ]);

Server (please complete the following information):

  • PHP version: 7.4

Additional context
Error apache:
Trying to access array offset on value of type null in function.php on line 159PHP message: PHP Fatal error: Uncaught RiotAPI\\LeagueAPI\\Exceptions\\RequestException: Failed to load static-data for URL: 'https://ddragon.leagueoflegends.com/cdn/last/data/en_US/champion.json#by-key'. in /var/www/html/L2P/php/vendor/dolejska-daniel/riot-api/src/LeagueAPI/LeagueAPI.php:1945\nStack trace:\n#0 /var/www/html/L2P/php/vendor/dolejska-daniel/riot-api/src/LeagueAPI/LeagueAPI.php(1994): RiotAPI\\LeagueAPI\\LeagueAPI->_makeStaticCall()\n#1 /var/www/html/L2P/pages/user/profil.php(121): RiotAPI\\LeagueAPI\\LeagueAPI->getStaticChampion()\n#2 /var/www/html/L2P/index.php(214): include('/var/www/html/L...')\n#3 {main}\n thrown in /var/www/html/L2P/php/vendor/dolejska-daniel/riot-api/src/LeagueAPI/LeagueAPI.php on line 1945'

@dolejska-daniel dolejska-daniel added the help-wanted We could use someone's help with this problem! label Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted We could use someone's help with this problem!
Projects
None yet
Development

No branches or pull requests

2 participants