Page 1 of 2
Mania Karma votes not uploaded?
Posted: 10 Feb 2019, 11:08
by RelaxedRacer
Hi, got this problem with Mania-Karma for a while now,
The votes dont seem to get uploaded to the global database at all anny more?
(also the "/karma export" dont work, posted this before)
It seems i'm not the only one, i seen screens and visited other servers that had more local karma votes than global votes.
If this is already being looked at, than sorry for the bumb

Re: Mania Karma votes not uploaded?
Posted: 11 Feb 2019, 15:49
by undef.de
I just took a look into my database and the last vote (from an random server) was at 2019-02-11 15:47:19, so the votes are stored. Maybe there is a problem on your site.
If you tell my the server login of your server having that problem, I'll take a deeper look.
Btw.: Something in the logfiles?
Re: Mania Karma votes not uploaded?
Posted: 11 Feb 2019, 16:49
by RelaxedRacer
undef.de wrote: ↑11 Feb 2019, 15:49
I just took a look into my database and the last vote (from an random server) was at 2019-02-11 15:47:19, so the votes are stored. Maybe there is a problem on your site.
If you tell my the server login of your server having that problem, I'll take a deeper look.
Btw.: Something in the logfiles?
Hmm so strange, btw i pm-ed you my log file some time ago, my server login is: racing_room_speed
(Stadium server)
I just pm-ed you the webrequest.log

Re: Mania Karma votes not uploaded?
Posted: 11 Feb 2019, 18:51
by undef.de
works perfectly and also for you, but you already exported the votes and the export is allowed only once. Anyway, the ManiaKarma returns an HTTP-Status (409) which lets the WebRequest worker think that the connection got an "Conflict". The design of the API was a fail from my side... I really need to change that.
Anyway, I just visited your server and voted for the map "Turbo_Strobe" and my vote was stored into my database (was watching it live).
Re: Mania Karma votes not uploaded?
Posted: 11 Feb 2019, 19:08
by RelaxedRacer
undef.de wrote: ↑11 Feb 2019, 18:51
works perfectly and also for you, but you already exported the votes and the export is allowed only once. Anyway, the ManiaKarma returns an HTTP-Status (409) which lets the WebRequest worker think that the connection got an "Conflict". The design of the API was a fail from my side... I really need to change that.
Anyway, I just visited your server and voted for the map "Turbo_Strobe" and my vote was stored into my database (was watching it live).
Ok cool, nice it worked, yesterday it wasn't (voted on a new added map), but ok good to hear this.
The Mania Karma plugin tels me to export when i join the server, i did paste the export http adress in browser once (2 months ago) to see if that worked, maybe i triggerd the "allowed once" (you can see i have little knowledge of this)
Thanx for testing it
Re: Mania Karma votes not uploaded?
Posted: 11 Feb 2019, 20:12
by undef.de
RelaxedRacer wrote: ↑11 Feb 2019, 19:08
The Mania Karma plugin tels me to export when i join the server[...]
Currently and everytime you join?
RelaxedRacer wrote: ↑11 Feb 2019, 19:08
[...] i did paste the export http adress in browser once (2 months ago) to see if that worked, maybe i triggerd the "allowed once"
No you can't export with a GET request, a POST with collected data is required.

Re: Mania Karma votes not uploaded?
Posted: 11 Feb 2019, 20:18
by RelaxedRacer
undef.de wrote: ↑11 Feb 2019, 20:12
Currently and everytime you join?
Yes, just tested
Re: Mania Karma votes not uploaded?
Posted: 11 Feb 2019, 23:00
by RelaxedRacer
The karma votes still dont seem to work, i voted on a new map, it showed global 1 vote, local 1 vote cool.
Than reloaded the map, global have 0 votes, local has 1 vote.
undef.de wrote: ↑11 Feb 2019, 18:51
Anyway, I just visited your server and voted for the map "Turbo_Strobe" and my vote was stored into my database (was watching it live).
That map has 4 global votes and 10 local.

Re: Mania Karma votes not uploaded?
Posted: 12 Feb 2019, 15:47
by undef.de
RelaxedRacer wrote: ↑11 Feb 2019, 23:00
[...] reloaded the map [...]
Ah... maybe that's the problem, because the votes are only send to my global database on a map change. But it should store the votes on reload instead of replacing it. Need to check that, added to the to do list.
Re: Mania Karma votes not uploaded?
Posted: 12 Feb 2019, 16:01
by RelaxedRacer
undef.de wrote: ↑12 Feb 2019, 15:47
Ah... maybe that's the problem, because the votes are only send to my global database on a map change. But it should store the votes on reload instead of replacing it.
Hmm ok, does this also happen when the map gets skipped?