Skip to content

API Error: "Cannot return null for non-nullable field Query.dockerContainers" #1305

@nedevski

Description

@nedevski

Environment

Unraid OS Version:

7.0.1

Are you using a reverse proxy?

No

Pre-submission Checklist

  • I have verified that my Unraid OS is up to date
  • I have tested this issue by accessing my server directly (not through a reverse proxy)
  • This is not an Unraid Connect related issue (if it is, please submit via the support form instead)

Issue Description

Steps to Reproduce

  1. Follow the docs
  2. unraid-api start
  3. unraid-api apikey --create
  4. Send the following query:
query {
    dockerContainers {
        id
        names
        state
        status
        autoStart
    }
}

Expected Behavior

Return info about containers

Actual Behavior

{
    "errors": [
        {
            "message": "Cannot return null for non-nullable field Query.dockerContainers.",
            "locations": [
                {
                    "line": 2,
                    "column": 5
                }
            ],
            "path": [
                "dockerContainers"
            ],
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR"
            }
        }
    ],
    "data": null
}

Additional Context

I am not sure how to extract the correct logs for this. If you provide me with any resource on how to do that, I'll gladly do so.

My setup is mostly stock, the only thing I can think of is that I'm using the "Docker Compose Manager" plugin and it might break the API.

P.S. All of the other examples in the docs work perfectly, the issue is only regarding docker containers.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions