github / privileged-requester

Privileged Requester Action
MIT License
15 stars 1 forks source link

Error: Converting circular structure to JSON #129

Open martinm82 opened 9 months ago

martinm82 commented 9 months ago

I have recently updated to v2.1.0 and hitting now the following error:

Run github/privileged-requester@f8d60d9344e[1](https://github.com/my-org/my-repo/actions/runs/7086922976/job/19286225062#step:3:1)c10976aad5c1af0c7c977badd677
  with:
    github_token: ***
    path: .github/privileged-requester.yml
    prCreator: dependabot[bot]
    prNumber: 1[2](https://github.com/my-org/my-repo/actions/runs/7086922976/job/19286225062#step:3:2)1[4](https://github.com/my-org/my-repo/actions/runs/7086922976/job/19286225062#step:3:4)
    checkCommits: true
    checkDiff: false
    checkLabels: false
    handle: github-actions[bot]
config path: .github/privileged-requester.yml
PR creator is dependabot[bot]. Testing against dependabot[bot]
Privileged requester dependabot[bot] found. Checking PR criteria against the privileged requester configuration.
Commits: Comparing the PR commits to verify that they are all from dependabot[bot]
Commits: All commits are made by dependabot[bot]. Success!
Error: PR not approved.
Error: Converting circular structure to JSON
    --> starting at object with constructor 'TLSSocket'
    |     property 'parser' -> object with constructor 'HTTPParser'
    --- property 'socket' closes the circle
Privileged requester dependabot[bot] checks passed.
✅ Approved!
merrywhether commented 3 months ago

This happens to me 2/3 of the time also. I'm confused how it ever works.