Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Error 500 on /api/getlandclaims and /api/getplayerhomes #303

Open
JFKoder opened this issue Jul 28, 2022 · 0 comments
Open

HTTP Error 500 on /api/getlandclaims and /api/getplayerhomes #303

JFKoder opened this issue Jul 28, 2022 · 0 comments

Comments

@JFKoder
Copy link

JFKoder commented Jul 28, 2022

This may be an issue for the CPM itself, but effects show in the WebApp, so please move it to other Repo if needed. THX

Gameversion VERSION: A20.5 (b2)
Server: Linux TheHell 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64 GNU/Linux
MOD: CPM 22.1 Version 22.1 A20.5 b2 Stable
What Happen:
I Updated two days ago to V 22.1 because to import Prefabs to the server. Yesterday i recogniced, the WebApp dont have the "Hamburger-button" to select the map areas like "reset region" or "player Homes".
The devconsole in the browser shows:

XHRGEThttp://65.21.110.200:8083/api/getplayerhomes
[HTTP/1.1 500 Internal Server Error 102ms]

Keine Antwortdaten für diese Anfrage verfügbar

Same for "/api/getlandclaims"
The ServerLogs shows these ERROR:

2022-07-28T09:41:40 4091.097 ERR Error in ApiHandler.HandleRequest(): Handler GetPlayerHomes threw an exception:
2022-07-28T09:41:40 4091.099 EXC Object reference not set to an instance of an object
  at CSMM_Patrons.Web.API.GetPlayerHomes+‏‏‍‫‬‬​‌‫‮‬‏‮‮‌‪‌‪‪‏‌​‮‮‌‏​‍‎‮.‍‬‬‬‫‫‬‎‎‎‍‬‫‬‭‍‎‍‌​‌‏‏‮‮ (System.String , System.String ) [0x00000] in <177a90276aba4564a5820c6766ba790b>:0 
  at CSMM_Patrons.Web.API.GetPlayerHomes+‏‏‍‫‬‬​‌‫‮‬‏‮‮‌‪‌‪‪‏‌​‮‮‌‏​‍‎‮.‏‌‏‭‌‏‪‏‌‏‬‭‪‬‪‏‪‏‬‍‬‭‎‌‏‮ (CSMM_Patrons.DbPlayer ) [0x0001b] in <177a90276aba4564a5820c6766ba790b>:0 
  at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at CSMM_Patrons.Web.API.GetPlayerHomes.HandleRequest (System.Net.HttpListenerRequest _req, System.Net.HttpListenerResponse _resp, CSMM_Patrons.Web.WebConnection _user, System.Int32 _permissionLevel) [0x001d3] in <177a90276aba4564a5820c6766ba790b>:0 
  at CSMM_Patrons.Web.Handlers.ApiHandler.HandleRequest (System.Net.HttpListenerRequest _req, System.Net.HttpListenerResponse _resp, CSMM_Patrons.Web.WebConnection _user, System.Int32 _permissionLevel) [0x00144] in <177a90276aba4564a5820c6766ba790b>:0 
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
CSMM_Patrons.Web.Handlers.ApiHandler:‮‮‭‎‎​‏​‫‫‪‎‍‌‎‭‌‪‏‍‏‍‫‍‭​​​‌‏‮(Exception)
CSMM_Patrons.Web.Handlers.ApiHandler:HandleRequest(HttpListenerRequest, HttpListenerResponse, WebConnection, Int32)
CSMM_Patrons.Web.Web:‎‌‎‪​‏​‎‭‌​‮​‬‬‮‫‪‪‎‍‭‫‎​​‍‮(IAsyncResult)
System.Net.ListenerAsyncResult:InvokeCallback(Object)
System.Threading.QueueUserWorkItemCallback:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
System.Threading.ThreadPoolWorkQueue:Dispatch()
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback()

temporary workaround:
in "~/.local/share/7DaysToDie/Saves/cpmcc_permissions.xml" I set permissionlevel to "-1"

		<permission module="cpmcc.getlandclaims" permission_level="-1" />
		<permission module="cpmcc.getplayerhomes" permission_level="-1" />

The complete Serverlog:
output_log__2022-07-28__08-33-28.txt

it may interfere with the some database / Saved data from the previos version? i was just overwriting the old MOD-files

Chears and thank for the awesome MOD ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant