Error when trying to upload to demo server
Closed this issue · 4 comments
When I tap the upload button I get HTTP error code: 400
under the synchronization section. When I tap it again I get this:
Value <html><body><script of type java.lang.String cannot be converted to JSONObject
For some reason android client can't access server script.
Make sure you have entered proper server address in client configuration, eg. https://www.your-domain.org
.
Also check that web server is properly configured to serve requests from client. You may try to open client upload page (www.your-domain.org/client/index.php
) from a browser. Properly configured server should display: {"error":false}
.
I used the demo server provided for ulogger-server.
I logged in with username demo
and password demo
. After visiting http://ulogger.fabiszewski.net/client/index.php with a browser, I get:
{"error":true,"message":"Unknown command"}
So you're saying that maybe the demo server isn't configured properly? Shall I open an issue there?
It turns out the free hosting I use for the demo site introduced some anti-bot feature. It displays some javascript page before proceeding to real target page. I will have to look for another provider.
Sorry, you will not be able to test it now :(
I changed hosting (bfabiszewski/ulogger-server@c7e32e4). It should work now.