These are chat archives for ushahidi/Community

31st
Jan 2017
Nesp
@Nesp
Jan 31 2017 10:02
@ushbot could you help me please?
Ushbot
@ushbot
Jan 31 2017 10:06
[David Losada, Ushahidi] Nesp, there shouldn’t be any problem with simultaneous access by the same user.
[David Losada, Ushahidi] from the same device or different devices
[David Losada, Ushahidi] you say you are getting an error when doing a lot of requests, can you approximately quantify that? i.e. 10 requests per second, 100 requests per minute..
Nesp
@Nesp
Jan 31 2017 10:18
Thank you David! : ) mmm it seems it depends, sometimes it takes 3 requests. Sometimes it does not happen even after 50 requests
does it have to deal with connection?
Also I am running the server with 1 GB of RAM (it is a VM)
Ushbot
@ushbot
Jan 31 2017 10:23
[David Losada, Ushahidi] maybe it depends on time? the tokens expire after 1 hour by default
Nesp
@Nesp
Jan 31 2017 10:26
Yes, actually I think it does depend on time, though it happens when I issue many requests in a short amount of time.
( I am issuing a new token request every hour :p )
Ushbot
@ushbot
Jan 31 2017 10:32
[David Losada, Ushahidi] so it happens when you leave short time between requests? how little time are we talking about?
Nesp
@Nesp
Jan 31 2017 10:32
as little as it takes to go back in my interface and issue a new request
(trying to simulate many requests at the same time)
(though I expect that different users from different devices will have different tokens, but I am not sure about the implications of that)
I'd say maybe couple of seconds or less
Ushbot
@ushbot
Jan 31 2017 10:35
[David Losada, Ushahidi] yea, many requests shouldn’t be an issue.. the web frontend itself usually sends quite many of requests to the api in order to render the information in a very short amount of time
[David Losada, Ushahidi] have you inspected the headers and contents of the failing requests to ensure that they were properly formed?
[David Losada, Ushahidi] just to discard the possibility that a race condition or other situation in your code base may be causing bogus requests
Nesp
@Nesp
Jan 31 2017 10:47
I will try to look into that. Though they are always the same request as I am deleting and adding the same post in two forms. Unluckily I am not able to reproduce the error now, maybe in the meantime some changes I made involuntarily fixed the issue. As soon as I find out I will let you know. Thanks a lot for your help!
Oh, I remember I was not able to see the requests in the network section . The only thing I saw was as error in the console. Which is the same that is found in the response text of the XMLHttpRequest object
Ushbot
@ushbot
Jan 31 2017 11:05
[David Losada, Ushahidi] that’s suspicious, any request generated by a web app should appear in the network section of the dev tools (as long as that section was open while the requests were being made)
Nesp
@Nesp
Jan 31 2017 11:19
mmm, I don't remember if it was open. Ok thanks a lot! I will check that as well. @ushbot
Xheni Beqiri
@XheniBeqiri_twitter
Jan 31 2017 14:26
Hello guys, sorry if I interrupt you but I need your help again :/ where to put the .po translated file of my site in the ushahidi platform?