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

Backend returns HTTP code 504 #7

Open
marcnause opened this issue Jun 6, 2016 · 2 comments
Open

Backend returns HTTP code 504 #7

marcnause opened this issue Jun 6, 2016 · 2 comments

Comments

@marcnause
Copy link
Contributor

marcnause commented Jun 6, 2016

I have noticed that most requests to the backend (http://loklag.org) return HTTP code 504 (gateway timeout).

I changed the logging in Harvester.java (line 276) to output a stacktrace to the log and I get this a lot:

D/PushThread: failed synchronous push to backend, attempt 0
java.io.IOException: Server returned non-OK status: 504
at org.loklak.tools.NetworkIO.pushString(Unknown Source)
at org.loklak.tools.JsonIO.pushJson(Unknown Source)
at org.loklak.client.PushClient.push(Unknown Source)
at org.loklak.android.wok.Harvester$PushThread.doInBackground(Harvester.java:263)
at org.loklak.android.wok.Harvester$PushThread.doInBackground(Harvester.java:244)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)

@sudheesh001
Copy link
Member

@Low012 Would it be possible to provide the query URL that's being requested which is returning a 504 ?

@marcnause
Copy link
Contributor Author

I have recorded a whole session using Charles. If you don't happen to coincidentally own a license, you can download a trial version to look at the file (unzip attached file and open via File -> Import).

If just the failed request and the response is enough info for you, I have also attached them in plain text. Please note that it worked fine 25 times before I got the error. Yesterday the situation was different and most of my requests failed.

I think the issue should have been created in loklak_server instead of here. My bad. :-\

session.zip
request.txt
response.txt

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

2 participants