Android Question ClaudKvs sample doesn´t work with my URL

Bob Spielen

Active Member
Licensed User
Longtime User
When I try to run the ClaudKvs example, with my own ,

B4X:
Public const ServerUrl As String = "http://digibob.online/XXX/YYY......."              Adress
I get the message :

Logger connected to: asus ASUS_X008D
--------- beginning of main
Creating new database!
--------- beginning of system
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: Not Found, Response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /web/wm/action was not found on this server.</p>
</body></html>
Error sending task: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /web/wm/action was not found on this server.</p>
</body></html>
ResponseError. Reason: Not Found, Response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">



Do I have to place something in my url adress?

Thank you in advance for the reply...
 
Last edited:

OliverA

Expert
Licensed User
Longtime User
The default path for CloudKVS is /action. So
B4X:
Public const ServerUrl As String = "http://digibob.online/action"            '  Adress
If you don't like that, then you have to change the following line the the server source code
B4X:
server.AddHandler("/action", "Action", False)
 
Last edited:
Upvote 0

Bob Spielen

Active Member
Licensed User
Longtime User
Oliver, first of all, thank you for the fast reply.
I put as adress:

[code/]
Public const ServerUrl As String = "http://digibob.online/web/action"
B4X:
and got the same message....

Logger connected to:  asus ASUS_X008D
--------- beginning of main
Copying updated assets files (1)
*** Service (starter) Create ***
Creating new database!
--------- beginning of system
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: Not Found, Response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /web/action was not found on this server.</p>
</body></html>
Error sending task: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /web/action was not found on this server.</p>
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
/web/action is not the default URL path for CloudKVS. Re-read my post.
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Good grief, I forgot about the port number. Try
B4X:
Public const ServerUrl As String = "http://digibob.online:51042/action"            '  Adress
That's the default out-of the box port number. If this is a public server, this may work out of the box. If you are behind a firewall, you may need to configure it to allow access.
 
Upvote 0

Bob Spielen

Active Member
Licensed User
Longtime User
Sorry for the hard time...but I got now....
(the folder /action remains empty


Logger connected to: asus ASUS_X008D
--------- beginning of main
Copying updated assets files (1)
*** Service (starter) Create ***
Creating new database!
--------- beginning of system
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
**** User: u1 ****
color -> 0
number -> 22
**** User: u1 ****
color -> 0
number -> 22
**** User: u1 ****
color -> 0
number -> 22
ResponseError. Reason: java.net.SocketTimeoutException: connect timed out, Response:
Error sending task: java.net.SocketTimeoutException: connect timed out
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
That "should" be fine. This will happen if the signal disconnects (no connection to the server). Once you pick up a signal (connection to the server), the client will start syncing again (it's on a timer). That's the whole purpose of CloudKVS (the auto-syncing, even after connection failure).
 
Upvote 0
Top