Open Bunker56 opened 1 year ago
Looks like you have log debug enabled, but I have yet to see if this line was hit in the small log you have provided https://github.com/PhlexPlexico/G5WS/blob/master/scripting/G5WS.sp#LL575C58-L575C58
I would recommend ensuring that you're request body on the web server is set to a relevant size as well, and maybe provide the HTTP logs from the API to see if that request is even being received. I haven't touched this project for a few months now, and I'm not sure what else could be wrong with it. Sorry!
It's okay, in principle I'm quite happy with 0.10, I just wanted to run it on 0.13.
I'm sorry for the persistence, I just want to understand and figure out why it works for you, but it doesn't work for me. Most likely I have a mistake somewhere, but for the purity of the experiment, I need to know exactly which latest versions of G5WS and Get5 you used. G5WS - last master, get5 @ 6560baa ? I run everything in Docker.
As I said before - you're only giving half the information with the logs. Check the logs on the API side and check if there are any errors there. You should see an HTTP request to the demo upload route with a 200 success code, if not then that would be a good place to start and see why it's not making it to the API side. Everything from the game server side shows that it's working as intended with everything that you have provided as of right now, so it's very hard to help without more information.
If use 0.13, then for some reason the demo recording does not work, I get this message in the server log:
L 05/01/2023 - 14:14:18: [G5WS] get5_web_api_url now set to L 05/01/2023 - 14:14:18: server_cvar: "mp_maxrounds" "30" L 05/01/2023 - 14:14:22: [get5] Calling Get5_OnDemoFinished() L 05/01/2023 - 14:14:22: [G5WS] About to enter UploadDemo. SO YES WE ARE. Our match ID is 8 L 05/01/2023 - 14:14:22: [G5WS] Trying to create request to url match/8/map/0/demo L 05/01/2023 - 14:14:22: [G5WS] Added http header value key=ONYTBCEAZ2AOXK6YUH647DF2 to request L 05/01/2023 - 14:14:22: [G5WS] Adding the API Key to the body is deprecated. Will be replaced once G5API 1.7.0 is released. L 05/01/2023 - 14:14:22: [G5WS] Added param key=ONYTBCEAZ2AOXK6YUH647DF2 to request L 05/01/2023 - 14:14:22: [G5WS] Our api url: http://g5test.bunker56.ru/api/ L 05/01/2023 - 14:14:22: [G5WS] Our demo string: 2023-05-01_14-08-09_8_map1_de_anubis.dem L 05/01/2023 - 14:14:22: [G5WS] Added param demoFile=2023-05-01_14-08-09_8_map1_de_anubis.dem to request src/common/httpclient.cpp (808) : pHost && pHost src/common/httpclient.cpp (808) : pHost && pHost L 05/01/2023 - 14:14:22: [G5WS] Trying to create request to url match/8/map/0/demo/upload No minidump written, nothing to upload. L 05/01/2023 - 14:14:22: [G5WS] Added http header value key=ONYTBCEAZ2AOXK6YUH647DF2 to request L 05/01/2023 - 14:14:22: [G5WS] Uploading demo to server... src/common/httpclient.cpp (808) : pHost && pHost src/common/httpclient.cpp (808) : pHost && pHost L 05/01/2023 - 14:14:22: [get5] Calling Get5_OnEvent(data={ "matchid": "8", "event": "demo_finished", "map_number": 0, "filename": "2023-05-01_14-08-09_8_map1_de_anubis.dem" }) L 05/01/2023 - 14:14:22: [get5] Skipping demo upload as upload URL is not set.
Server: Debian 11 Docker version 23.0.5, build bc4487a CS:GO: Metamod:Source version 1.11.0-dev+1148 SourceMod Version: 1.11.0.6934
G5WS - last Master get5 @ 6560baa Compiled with SM 1.10.6545
When using 0.10.5, everything is fine