RCVolus / league-prod-toolkit

Toolkit for League Productions with overlays for champion select, ingame events, end of game stats, and more
MIT License
137 stars 25 forks source link

Provider web-api request timed out. #105

Closed kryxeno closed 2 years ago

kryxeno commented 2 years ago

Hey! I feel like I am doing everything correctly (I connect to localhost through MongoDBCompass, I connect the observer tool and sync & I put in a fresh riot development api key) but I keep getting (warning) event timed out and (warning) no handler was executed. I feel like it goes perfectly from lobby to champselect not further. Am I doing something wrong?

afbeelding

league-prod-toolkit-core@1.0.0 start node --trace-warnings dist/core/app.js

2022-04-26T17:18:16.546Z [info ] main : __ 2022-04-26T17:18:16.547Z [info ] main : | | | | | | _ | | | () | 2022-04-26T17:18:16.548Z [info ] main : | | / | | | |/ \ / | | |/ / | | 2022-04-26T17:18:16.548Z [info ] main : | || () | | | | () | () | | <| | | 2022-04-26T17:18:16.548Z [info ] main : |_____/|__| ||_/ _/|||__|\| 2022-04-26T17:18:16.548Z [info ] main : 2022-04-26T17:18:16.549Z [info ] lpte-svc : Initialized event bus. 2022-04-26T17:18:16.550Z [info ] module-svc : Initializing module service. 2022-04-26T17:18:17.821Z [info ] module-svc : Initialized 17 module(s). Now loading plugins. 2022-04-26T17:18:17.822Z [info ] module-svc : Loaded 17 plugin(s). 2022-04-26T17:18:18.625Z [info ] main : LoL Toolkit started up successfully. 2022-04-26T17:18:18.626Z [info ] module-svc : Plugin status changed: plugin=plugin-webapi, old=UNAVAILABLE, new=RUNNING2022-04-26T17:18:18.627Z [info ] module-svc : Plugin status changed: plugin=plugin-prod-clock, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.627Z [info ] module-svc : Plugin status changed: plugin=plugin-config, old=UNAVAILABLE, new=RUNNING2022-04-26T17:18:18.627Z [info ] module-svc : Plugin status changed: plugin=module-valorant-state, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.628Z [info ] module-svc : Plugin status changed: plugin=module-valorant-pregame, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.628Z [info ] module-svc : Plugin status changed: plugin=module-tournament-tree, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.628Z [info ] module-svc : Plugin status changed: plugin=module-teams, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.628Z [info ] module-svc : Plugin status changed: plugin=module-league-state, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.629Z [info ] module-svc : Plugin status changed: plugin=module-league-runes, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.629Z [info ] module-svc : Plugin status changed: plugin=module-league-end-of-game, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.630Z [info ] module-svc : Plugin status changed: plugin=module-league-champselect-ui, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.630Z [info ] module-svc : Plugin status changed: plugin=module-caster, old=UNAVAILABLE, new=RUNNINGsetting storageRoot to C:\Tools\prod-toolkit\modules\plugin-webapi\node_modules\leaguejs\StaticDataDefaultRoot 2022-04-26T17:18:18.641Z [info ] module-svc : Plugin status changed: plugin=plugin-database, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.641Z [info ] module-svc : Plugin status changed: plugin=module-league-static, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.642Z [info ] module-svc : Plugin status changed: plugin=module-league-in-game, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.653Z [info ] module-svc : Plugin status changed: plugin=plugin-theming, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.942Z [info ] module-svc : Plugin status changed: plugin=module-valorant-static, old=UNAVAILABLE, new=RUNNING 2022-04-26T17:18:18.960Z [info ] server : Listening for requests on http://localhost:3003 2022-04-26T17:18:42.612Z [warn ] lpte-svc : Request was sent, but no handler was executed. This will result in a timeout. Meta={"namespace":"prod-clock","type":"request-sync","version":1,"reply":"request-sync-iet0jbq8l2gewz3m","channelType":"REQUEST"} 2022-04-26T17:19:05.151Z [info ] module-league-state: Flow: champselect - active 2022-04-26T17:20:20.426Z [info ] module-league-state: Flow: champselect - game started (spectator delay) 2022-04-26T17:20:20.446Z [warn ] lpte-svc : Request was sent, but no handler was executed. This will result in a timeout. Meta={"channelType":"REQUEST","namespace":"provider-webapi","type":"fetch-livegame","version":1,"sender":{"name":"module-league-state","version":"4.1.1","mode":"PLUGIN","path":"C:\Tools\prod-toolkit\modules\module-league-state"},"reply":"fetch-livegame-iet0jd7sl2gez2l6"} 2022-04-26T17:20:50.447Z [warn ] lpte-svc : Awaiting event timed out. namespace=reply, type=fetch-livegame-iet0jd7sl2gez2l6, timeout=30000 2022-04-26T17:20:50.448Z [error] lpte-svc : Request timed out after 30000ms. Request meta={"channelType":"REQUEST","namespace":"provider-webapi","type":"fetch-livegame","version":1,"sender":{"name":"module-league-state","version":"4.1.1","mode":"PLUGIN","path":"C:\Tools\prod-toolkit\modules\module-league-state"},"reply":"fetch-livegame-iet0jd7sl2gez2l6"} 2022-04-26T17:23:47.386Z [info ] module-league-state: Flow: champselect - inactive

Himyu commented 2 years ago

Thanks for reporting this issue.

Can you pls tell us which versions of the individual modules you are using?

But if everything is up to date, that's a bug and we gonna fix this as soon as we can.

kryxeno commented 2 years ago

I would love to, but there seems to be an issue with starting the application.

I'm getting to the datadragon download but afterwards the start.bat just shuts down without warning after briefly showing the error message below. I have tried on another device and im getting the same problem there.

afbeelding

I did download the 1.0 release today so I assume all of the modules are up-to-date (regarding the original issue).

Himyu commented 2 years ago

I should be fixed with an update of the module for the league state you can do that why the module page in the web interface and the just restart the tool :)

FireFoXz09 commented 2 years ago

I would love to, but there seems to be an issue with starting the application.

I'm getting to the datadragon download but afterwards the start.bat just shuts down without warning after briefly showing the error message below. I have tried on another device and im getting the same problem there.

afbeelding

I did download the 1.0 release today so I assume all of the modules are up-to-date (regarding the original issue).

Exactly the same issue and error from me, can't start the application and access the web panel because of that.

sdomi4 commented 2 years ago

This is likely related to 12.8 being released, and files at cdragon not being available immediately.

To get it to work, either

The crash should have been fixed in #79, but we'll have to check whats going wrong there

kryxeno commented 2 years ago

So im getting this warning everytime the server connects with the observer tool.

2022-04-27T16:05:37.311Z [info ] server : Listening for requests on http://localhost:3003 2022-04-27T16:05:41.271Z [warn ] lpte-svc : Request was sent, but no handler was executed. This will result in a timeout. Meta={"namespace":"prod-clock","type":"request-sync","version":1,"reply":"request-sync-iet0jgc4l2hrqx3a","channelType":"REQUEST"} 2022-04-27T16:05:57.252Z [info ] module-league-state: Flow: lobby - active 2022-04-27T16:06:45.479Z [info ] module-league-state: Flow: champselect - active 2022-04-27T16:08:20.200Z [info ] module-league-state: Flow: champselect - game started (spectator delay) 2022-04-27T16:08:20.216Z [info ] plugin-webapi: Fetching livegame data for summoner=(My name) 2022-04-27T16:08:33.710Z [info ] plugin-webapi: Fetched livegame for summoner=(My name), gameId=5843842698 100 200 2022-04-27T16:12:45.569Z [info ] module-league-state: Flow: champselect - inactive 2022-04-27T16:14:45.044Z [info ] module-league-state: Flow: end of game - active

The flow seems to be working properly until I get ingame. The levelups and item buys dont seem to work at all. I also dont get any information at the "Game is loaded: #" section in the game state module, and in-game-live always stays unknown.

afbeelding

afbeelding

Also, if I start the client after starting the start.bat & league observer tool it doesnt quite work as expected. Once I get into champ-select the start.bat either doesnt recognise that I have entered champselect or just crashes without warning or error message. This also happens when I am in champ-select and there is an update like a ban or a pick. I'm not sure if this is expected behavior or user error or anything but Ill mention it regardless.

sdomi4 commented 2 years ago

I can reproduce the issue with ingame events not showing up, we will look into it and let you know once we know whats happening.

The observer tool needs the client to be running when syncing modules, I recommend always starting league, then the toolkit, then the observer tool. In some rare cases, playing with the observer tool can lead to crashes, although we haven't been able to reliably reproduce these.

If this keeps happening, you can start the toolkit from PowerShell, this way any error messages should be visible on a hard crash (shift+rightclick in the toolkit folder -> open PowerShell here -> npm start)

kryxeno commented 2 years ago

Ah okay I will do it in that order.

Is this warning also related to that problem or can it be resolved on my side?

2022-04-27T16:05:41.271Z [warn ] lpte-svc : Request was sent, but no handler was executed. This will result in a timeout. Meta={"namespace":"prod-clock","type":"request-sync","version":1,"reply":"request-sync-iet0jgc4l2hrqx3a","channelType":"REQUEST"}

Regardless of that, thanks for the quick responses and help!

Himyu commented 2 years ago

We are aware of this issue, this should not be a problem and will be fixed with the next patch of the observer tool.

sdomi4 commented 2 years ago

This should now be fixed, I am seeing ingame events again with the newest version of the observer tool. Could you try again and confirm if this fix also works for you? (The observer tool auto updates, no need to reinstall or anything)

kryxeno commented 2 years ago

Yes, I can see the ingame events now (I only tried mythic & lvl 6)! Thanks!