get5loader icon indicating copy to clipboard operation
get5loader copied to clipboard

[BUG] Error #01: JSON Format invalid when adding a server

Open tydaytygx opened this issue 3 years ago • 3 comments

Bug of Add a server. The server-side plugins are available(testing with get5_web_avaliable) and sql is good to go. The panel I could log in but adding the server POST 400 bad request?

Web
POSThttp://localhost:8080/api/v1/server/create

Backend
Error #01: JSON Format invalid

Did I miss some config?

Using golang1.16.2

tydaytygx avatar Mar 21 '21 16:03 tydaytygx

I think this bug is related to https://github.com/FlowingSPDG/get5-web-go/issues/175 . If you're using SRCDS with logging enabled(log on), it might break JSON parsing. I'm still working on how to fix it though, you can disable logging to add it correctly. However, you might need to disable logging whore time using get5-web-go.

FlowingSPDG avatar Mar 22 '21 09:03 FlowingSPDG

I think this bug is related to #175 . If you're using SRCDS with logging enabled(log on), it might break JSON parsing. I'm still working on how to fix it though, you can disable logging to add it correctly. However, you might need to disable logging whore time using get5-web-go.

Hey, thanks for the apply! I turn off all my srcds with log off but still get the same issue, did I misunderstand the disable logging?

tydaytygx avatar Mar 22 '21 16:03 tydaytygx

I think this bug is related to #175 . If you're using SRCDS with logging enabled(log on), it might break JSON parsing. I'm still working on how to fix it though, you can disable logging to add it correctly. However, you might need to disable logging whore time using get5-web-go.

Well, the web may have some issue, but I managed to add server through sql editor, thanks for your apply!

tydaytygx avatar Mar 22 '21 17:03 tydaytygx