Skip to content

Error: TypeError: Converting circular structure to JSON #329

@vvanouytsel

Description

@vvanouytsel

We are running v7 of runner-container-hooks and are noticing failures related to Converting circular structure to JSON.
These are not easily reproduced and happen once every few weeks. From what I can see it might be related to the way runner-container-hooks handles errors from the Kubernetes API when exec-ing into pods.

In this example it happened in a post job, but we also see it happening between steps.

Post job cleanup.
Run '/home/runner/k8s/index.js'
Error: TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'ClientRequest'
    |     property 'socket' -> object with constructor 'TLSSocket'
    --- property '_httpMessage' closes the circle
Error: Process completed with exit code 1.
Error: Executing the custom container implementation failed. Please contact your self hosted runner administrator.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions