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

Application crash due to the enhanced debug mode #54

Closed
jsproede opened this issue Dec 15, 2023 · 2 comments
Closed

Application crash due to the enhanced debug mode #54

jsproede opened this issue Dec 15, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jsproede
Copy link
Contributor

Hi :)

With pull request #53 you've introduced an enhanced debug mode which is enabled in our pipelines by default to see a more verbose log.
Since the update a few hours ago, we've issues with the changes you made for the enhanced debug mode:

{"action":"generate report","data":{"provide":"gitlab"}}
{"action":"sonar get task status","data":"/api/ce/activity"}
{"action":"[axios] request","data":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"headers":{"common":{"Accept":"application/json, text/plain, */*"},"delete":{},"get":{},"head":{},"post":{"Content-Type":"application/x-www-form-urlencoded"},"put":{"Content-Type":"application/x-www-form-urlencoded"},"patch":{"Content-Type":"application/x-www-form-urlencoded"},"Authorization":"Bearer [MASKED]"},"method":"get","url":"[REDACTED]/api/ce/activity?component=[REDACTED]&onlyCurrents=true"}}
TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'ClientRequest'
    |     property 'socket' -> object with constructor 'TLSSocket'
    --- property '_httpMessage' closes the circle
    at JSON.stringify (<anonymous>)
    at Logger.debug (/usr/local/lib/node_modules/sonar-quality-gate/build/utils/log.js:18:26)
    at onResponse (/usr/local/lib/node_modules/sonar-quality-gate/build/http/interceptors.js:14:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

After the error the whole application crashes and doesn't continue decorating the merge requests in GitLab.

@hblab-dieuhd hblab-dieuhd added the bug Something isn't working label Jan 10, 2024
@dieuhd dieuhd pinned this issue Jan 11, 2024
@dieuhd dieuhd unpinned this issue Jan 11, 2024
@dieuhd
Copy link
Owner

dieuhd commented Jan 15, 2024

@jsproede
i have pushed code for fix this bug #56 , please check it again.

@jsproede
Copy link
Contributor Author

jsproede commented Feb 6, 2024

Hi @dieuhd,

sorry for the delay. The issue has been fixed with the changes you've pushed. Thank you! :)

@jsproede jsproede closed this as completed Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants