RCVolus / lol-pick-ban-ui

Web-Based UI to display the league of legends champ select in esports tournaments.
MIT License
244 stars 68 forks source link

"UnhandledPromiseRejectionWarning" bug FIXED #82

Closed RafaelLogan closed 3 years ago

RafaelLogan commented 3 years ago

I've followed all the procedures that the readme.MD says but every time I hit npm start "UnhandledPromiseRejectionWarning" loops image

morpheus26 commented 3 years ago

is also happening to me someone has a solution

Laraakaa commented 3 years ago

Hello, are you actually running the League of Legends-Client in the background? This error message usually says that a connection to the League Client could not be made.

mpsb commented 3 years ago

Hi, also facing this error. Are we supposed to have the League Client running?

morpheus26 commented 3 years ago

yes the league of Legends-Client is running in the background

Laraakaa commented 3 years ago

So there seems to be a connection issue. Can you please let me know what server you are on?

RafaelLogan commented 3 years ago

I'm on the SEA server, it will not automatically connect even if it's on the background process. I've downgraded node.js but no go. I've given up on this and looked for other alternatives.

RafaelLogan commented 3 years ago

Update: Right-click on the menu item and select Run as administrator. if this doesn't work then it is not available with my league client

morpheus26 commented 3 years ago

I am on the Brazilian server and also sometimes when this error does not appear, this other error appears in the browser erro

RafaelLogan commented 3 years ago

https://www.tenforums.com/tutorials/60177-add-open-powershell-window-here-administrator-windows-10-a.html Here's how to make it run as administrator Here's the fix for it thank you!

RafaelLogan commented 3 years ago

image

morpheus26 commented 3 years ago

I did the whole process that you said I put the powershell in administrator mode but it looks just like your photo but it doesn’t advance to the last command line and gets stuck (sorry to bother you again) fica assim

RafaelLogan commented 3 years ago

It's already started @morpheus26 you may now go to the other one.

Laraakaa commented 3 years ago

yes, @morpheus26 now you're good to go. The line that you saw above is in the middle somewhere, as long as it says "LeagueClient connected" at some point, it is fine.

RafaelLogan commented 3 years ago

hey, @LarsBaertschi where I can post the fix for this?

Laraakaa commented 3 years ago

Hello @RafaelLogan, I will update the README with that information. This was an issue in the past over and over again with certain servers (mostly servers not run by Riot Games)

RafaelLogan commented 3 years ago

Oh okay! Thank you!