rd cli erro

24 views
Skip to first unread message

ron chatterton

unread,
Jun 19, 2025, 7:01:07 AMJun 19
to rundeck-discuss
Hi

Has anyone seen an error like this when useing the cli rd command

ssl]# rd projects create --project=myprjectron
Credentials for URL: https://rundeck01.dmicp.local:4443
Enter username (blank for token auth): admin
Enter password:
com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
 at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 0]
        at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
        at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1752)
        at com.fasterxml.jackson.databind.ObjectReader._initForReading(ObjectReader.java:360)
        at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:2095)
        at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1513)
        at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:33)
        at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:23)
        at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:243)
        at retrofit2.OkHttpCall.execute(OkHttpCall.java:204)
        at org.rundeck.client.util.Client.checkErrorDowngradable(Client.java:166)
        at org.rundeck.client.util.Client.apiCallDowngradable(Client.java:606)
        at org.rundeck.client.tool.commands.RdToolImpl.apiCallDowngradable(RdToolImpl.java:107)
        at org.rundeck.client.tool.commands.RdToolImpl.apiCall(RdToolImpl.java:78)
        at org.rundeck.client.tool.extension.BaseCommand.apiCall(BaseCommand.java:24)
        at org.rundeck.client.tool.commands.Projects.create(Projects.java:147)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1972)
        at picocli.CommandLine.access$1300(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
        at picocli.CommandLine.execute(CommandLine.java:2078)
        at org.rundeck.client.tool.Main.main(Main.java:155)

rac...@rundeck.com

unread,
Jun 23, 2025, 11:01:01 AMJun 23
to rundeck-discuss
Hi Ron,

Can you share more details? Which rundeck and  RD CLI versions are you using?

Regards!

ron chatterton

unread,
Jun 26, 2025, 4:58:57 AMJun 26
to rundeck-discuss
redhat 9
rundeck-5.9.0.20250205-1
rundeck-cli-2.0.8-1

I tried to replicate the issue on a test VM -  however on turning of SSL / certificate  verification it worked on my test VM
on the one I want to get working when I turn off SSL / certificate verification I get the error ....
com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
 at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 0]

Rgds

rac...@rundeck.com

unread,
Jun 27, 2025, 2:51:29 PMJun 27
to rundeck-discuss
Hi Ron,

Is this happening only when you launch that command? Can you test a simple rd system info command? Also, try with the latest RD CLI version at this moment (2.0.9, released yesterday).

The error occurs because the server’s response to the project creation request is empty (no JSON body), but the client code always tries to parse a JSON object from the response. If the Rundeck server returns HTTP 204 (No Content) or a 200 with an empty body, the Jackson library throws this exception. This could be a bug.

Regards.

Reply all
Reply to author
Forward
0 new messages