Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose returned JSON is empty since docker compose 2.21.0 #449

Closed
jonaskistler opened this issue Aug 26, 2024 · 4 comments
Closed

Comments

@jonaskistler
Copy link

jonaskistler commented Aug 26, 2024

Since we upgraded docker compose to latest version, we got this error :

Cannot process JSON returned from 'docker compose ps --format json'
java.lang.IllegalArgumentException: Text must not be null or empty
        at groovy.json.JsonSlurper.parseText(JsonSlurper.java:202)
        at groovy.json.JsonSlurper$parseText.call(Unknown Source)
        at com.avast.gradle.dockercompose.tasks.ComposeUp$_getStateForCache_closure12.doCall(ComposeUp.groovy:222)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:274)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)
        at groovy.lang.Closure.call(Closure.java:412)
        at groovy.lang.Closure.call(Closure.java:428)
        at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:3602)

The output of docker compose changed with version 2.21.0 : docker/compose#10958

Is there any way to not get spammed by this error ?

Thanks !

@jonaskistler
Copy link
Author

Thanks alot for the fix and the version, could you release the version on the plugins.gradle site please @augi

@augi
Copy link
Member

augi commented Aug 28, 2024

Hi, I´m trying since yesterday. Sonatype support confirmed they accidentally removed the token used for publishing, so I´m communicating with them to issue a new token.

@jonaskistler
Copy link
Author

Oh okay thanks !

@augi
Copy link
Member

augi commented Aug 29, 2024

Please note the new version has been just published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@augi @jonaskistler and others