Hello,

I am trying to use the RESTful API, but got an issue at the first step :-(

I tried with curl to get a token, and get an error message telling “internal 
error”:

$curl -X POST -H "Content-Type: application/json" -d '{"username":"XXXXXXXX", 
"password":"XXXXXXXX"}' http://MY-GUACAMOLE/guacamole/api/tokens
{"message":"Unexpected internal error","translatableMessage":{"key":"Unexpected 
internal 
error","variables":null},"statusCode":null,"expected":null,"type":"INTERNAL_ERROR"}

Checking the logs, I was told “Can not deserialize instance”, as below.

10:52:17.922 [http-nio-8080-exec-3] ERROR o.a.g.rest.RESTExceptionMapper - 
Unexpected internal error: Can not deserialize instance of java.util.ArrayList 
out of VALUE_STRING token
 at [Source: org.apache.catalina.connector.CoyoteInputStream@7fe62df5; line: 1, 
column: 2]
10:52:17.923 [http-nio-8080-exec-3] DEBUG o.a.g.rest.RESTExceptionMapper - 
Unexpected error in REST endpoint.
org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of 
java.util.ArrayList out of VALUE_STRING token
 at [Source: org.apache.catalina.connector.CoyoteInputStream@7fe62df5; line: 1, 
column: 2]
 at 
org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163)
…


Could you help to shed some light? I can login from the web portal with the 
username/password.

Thanks,
Yang
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to