-
Notifications
You must be signed in to change notification settings - Fork 8
How to add logdebug #37
Comments
And if it is possible is there any way to check what G5API receiving. |
If you'd like to on the game server you can call There was another issue at one point as well here that was running into a similar issue, where Windows Game servers are not able to send data, however I think that has been patched in the latest release of sm-ripext. Thanks! |
Thank you! I'll try to use docker as linked issue. |
What web server are you using if I may ask? There may be some common issue here if it's nginx, and it may be something worth looking into more, as I think that may be the problem. Thanks! |
nginx version: nginx/1.14.0 (Ubuntu) |
|
I think I may have something to test here - would you mind trying to get the data sent over HTTPS? You may have to get a cert from LetsEncrypt for your website, but try doing that and see if the data gets sent? Thanks! |
No matter in docker or nginx? Because to add SSL to nginx is not a problem, but idk how to do it in docker |
didn't helped in nginx. I have installed lets encrypt certificate, and changed http to https in configs, still an error. |
Found this line in nginx logs
Is it normal that in log it use \x22? May be because of this format nginx proxy don't pass it to api? |
Switched from nginx to Caddy. Used a config from https://github.com/PhlexPlexico/G5V/wiki/Webserver-Setup-With-Caddy, and now it works. |
Hmmm how did you end up getting that log from nginx? This might be something definitely looking into. My public panel is currently using NGINX behind an NGINX (reverse-reverse proxy lol) proxy... Could you try one more thing with your NGINX config for me, please? Under the |
Ok I'll check it later and write it here |
Are you hitting the API port directly? I.e. yourserver.com:3301 when posting with Insomnia? Also, another thing to test would be to remove the reverse proxy completely. In all your settings, instead of having Thanks! |
No, to domain.com/api threw nginx from Insomnia |
|
If you try and set the application type it may help... It's good to see that it's at least making it to the reverse proxy, but not to the express app, which leads me to believe the content type may not be getting set, in which case I could make a change to the plugin as well to ensure the Content-Type is correct, or just add it into the wiki config :) Thanks for helping me out with this, it's much appreciated! |
Yeah of course I'll help at testing, its not a problem, but after work :) |
As there hasn't been any response or updates in 20 days, will close this now. If you need to reopen, feel free to let me know! |
How to add logdebug what plugin trying to send to a G5API?
I got a problem with error:
But when I create a manual POST request from Insomnia program. API responds without errors.
I want to check what request G5WS trying to create, and search for an error.
The text was updated successfully, but these errors were encountered: