You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Mike Jumper <mi...@glyptodon.com> on 2021/05/06 21:45:28 UTC
Re: Can't create new connections with Guacamole REST API
On Thu, Apr 22, 2021 at 4:15 AM Nick Couchman <vn...@apache.org> wrote:
> On Thu, Apr 22, 2021 at 6:24 AM Passerini Marco <ma...@cscs.ch>
> wrote:
>
>> ...
>>
> The logged error is not very clear:
>>
>> "org.codehaus.jackson.map.JsonMappingException: Can not instantiate value
>> of type [simple type, class
>> org.apache.guacamole.rest.connection.APIConnection] from JSON String; no
>> single-String constructor/factory method"
>>
> That is a obscure error - it indicates to me that something in the data
> you've provided is not the format it is expecting.
>
Marco - I recommend capturing the raw HTTP traffic between your script and
Guacamole to see what is sent. It may be that the JSON is not actually
being formatted as expected, and that the data in the request body is
somehow not a proper JSON object.
Michael Jumper
CEO, Lead Developer
Glyptodon Inc <https://glyp.to/>.