Hi,

Any inputs on what am I missing?

Regards,
Umesh
From: Umesh Bhatt
Sent: Tuesday, October 15, 2019 4:04 PM
To: user@guacamole.apache.org
Subject: RE: Restful API for guacamole

Hi,

This is GET call and there is no FormParam in this call only QueryParam.

Following is the error I am seeing in catalina.out.
WARNING: A servlet request, to the URI 
http://<GUACAMOLE_SERVER>/guacamole/api/session/data/postgresql/activeConnections?token=8C9FD128866B8965C8485C42DA3CF7C9EBC4C15F0FC99D2CE4495A06EFF02B18<http://%3cGUACAMOLE_SERVER%3e/guacamole/api/session/data/postgresql/activeConnections?token=8C9FD128866B8965C8485C42DA3CF7C9EBC4C15F0FC99D2CE4495A06EFF02B18>,
 contains form parameters in the request body but the request body has been 
consumed by the servlet or a servlet filter accessing the request parameters. 
Only resource methods using @FormParam will work as expected. Resource methods 
consuming the request body by other means will not work as expected.
15:56:29.260 [http-bio-8080-exec-3] ERROR o.a.g.rest.RESTExceptionMapper - An 
internal error occurred, but did not contain an error message. Enable 
debug-level logging for details.

Regards,
Umesh

From: Nick Couchman <vn...@apache.org<mailto:vn...@apache.org>>
Sent: Tuesday, October 15, 2019 4:01 PM
To: user@guacamole.apache.org<mailto:user@guacamole.apache.org>
Subject: Re: Restful API for guacamole

On Tue, Oct 15, 2019 at 6:26 AM Umesh Bhatt 
<um...@nuvepro.com<mailto:um...@nuvepro.com>> wrote:
Hi,

I am using with my server (1.0.0) to get a token but unable to use that token 
for getting active connections and other details.

To get a Token:

POST
http://<GUACAMOLE_SERVER>/guacamole/api/tokens<http://%3cGUACAMOLE_SERVER%3e/guacamole/api/tokens>

form data1: username
form data2: password

This API returns a new token but when I want to use it, fails with following 
error.

GET
http://<GUACAMOLE_SERVER>/guacamole/api/session/data/postgresql/activeConnections?token=<http://%3cGUACAMOLE_SERVER%3e/guacamole/api/session/data/postgresql/activeConnections?token=57964FF786C7F4E0B5DE75E5C202782081842173A885828D5433F73A6951590F><RETRIEVED_TOKEN>

Error:
{
    "message": "Unexpected internal error",
    "translatableMessage": {
        "key": "Unexpected internal error",
        "variables": null
    },
    "statusCode": null,
    "expected": null,
    "type": "INTERNAL_ERROR"
}

Is there an error in catalina.out (or wherever your Java application server 
logs errors) that provides any further detail?

-Nick

Reply via email to