perezpaya / lolfire-source Goto Github PK
View Code? Open in Web Editor NEWThis is the lolfire.com code. Have fun helping in the development :)
License: MIT License
This is the lolfire.com code. Have fun helping in the development :)
License: MIT License
aggregatedstats and stats not working for me at now for euw (other things works fine.)
{
"err": {
"type": 17,
"name": "_error",
"id": 4,
"data": null,
"args": []
}
}
Good Evening,
I have everything installed correctly, or so it seems, however I am in an unending loop, what am I missing?
Logging in..
Checking Login Queue
connect.staticCache() is deprecated and will be removed in 3.0
use varnish or similar reverse proxy caches.
Logging in..
Checking Login Queue
Logging in..
Checking Login Queue
Logging in..
Checking Login Queue
I would gladly help write up some documentation
I really need some kind of league of legends api for my application but I don't have the knowledge to host this on my pc. Can you help me out?
Hey Your script works with Na and euw very well . But I wanna change base region to Brazil. How can I do that ? is it so hard to do or easy ? I can wait if you are busy.
I try to do change something but failed
"BR", "prod.br.lol.riotgames.com", "https://lq.br.lol.riotgames.com/");
Thanks to you
Hello!
When I try to call getInProgressMatch with a summoner that isn't currently playing I get a GameNotFoundException from riot servers, the problem is that after that, the connection is closed ("Timeout reached, closing socket") so I have to re-login again in order to keep making calls.
Is there a way to handle this error so that the socket doesn't time out?
Thanks
I've changed the Login Credentials as needed to let the API Log into the EUW Server, added the newest Version string and everything seems to be just fine, except when I try several calls the whole thing crashes / forces an automated relog:
Retrieving Summoner Name(/api/v1/euw/summoner/xxx) when summoner xxx does not exsit the whole process crashes, first line of the stacktrace:
TypeError: Cannot read property 'object' of null
at D:\Users\XXX\Documents\lolfire\lolfire-source-master\api.js:33:56
The "stats" aswell as "aggregatedstats" returns the following and forces the client to relog:
{
"err": {
"type": 17,
"name": "_error",
"id": 4,
"data": null,
"args": []
}
}
Anyone got ideas?
Intente probar en windows pero me salieron algunos errores después de hacer npm install, entonces tuve que hacerlo desde mi servidor, pero pues sigue mostrando el siguiente error, espero y me puedas orientar:
root~/lolfire2#
module.js:340
throw err;
^
Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/root/lolfire2/lolrmtp/matches.js:1:77)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Edit2:
Bueno retomando el error hice un npm install request, pues tenía ese error, pues ahora tengo el siguiente error al escribir node main:
root:~/lolfire# node main
Logging in..
connect.staticCache() is deprecated and will be removed in 3.0
use varnish or similar reverse proxy caches.
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1039:14)
at listen (net.js:1061:10)
at Server.listen (net.js:1127:5)
at Function.app.listen (/root/lolfire/node_modules/express/lib/application.js:533:24)
at Object. (/root/lolfire/main.js:116:7)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Edit 3: Listo lo que hace ese error es que el puerto ya estaba ocupado como por default viene el 80, entonces pues cambie el puerto en main.js, hasta todod funciona bien el template, pero los valores como por ejemplo status me arroja null. ¿a que se debe? pero ya ví que es por la versión 3.12.13_10_08_16_20 entonces la cambie y ya me arroja todo perfecto. ahora a testear un saludo!
Ih and sorry if I did a stupid request.
I try to start the code but I have that error:
Credentials: {"rate":0,"reason":"invalid_credentials","status":"FAILED","delay":5000}
Where can I change the credential or what am I doing wrong?
Thank you in advice.
after using npm install at directory . it is installing all dependencies. but when I try to do "node main" it says
(someproject)[root@server lolfire]# node main
/root/lolfire/lolfire/connections.js:31
async.map(Object.keys(regions), function (region, callback){
^^^^^
SyntaxError: Unexpected identifier
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/root/lolfire/lolfire/main.js:8:5)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
I am missing something but what :) ty for help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.