E2E test (FE): reports circular data serialization problems

Open
#1,012 0 comments 0 reactions 1 assignee View on GitHub

@Junjiequan is already working on this.

Since Jan 31, 2024.

Assessment

This issue has not been assessed yet.

Description

See e.g. https://github.com/SciCatProject/frontend/actions/runs/7538055162/job/20517946937?pr=1366

This error is not fatal, but we should try to avoid it

 [Nest] 1  - 01/16/2024, 6:59:29 AM   ERROR [ExceptionsHandler] Converting circular structure to JSON
682
backend_1           |     --> starting at object with constructor 'Socket'
683
backend_1           |     |     property '_httpMessage' -> object with constructor 'ClientRequest'
684
backend_1           |     --- property 'socket' closes the circle
685
backend_1           | TypeError: Converting circular structure to JSON
686
backend_1           |     --> starting at object with constructor 'Socket'
687
backend_1           |     |     property '_httpMessage' -> object with constructor 'ClientRequest'
688
backend_1           |     --- property 'socket' closes the circle
689
backend_1           |     at JSON.stringify (<anonymous>)
690
backend_1           |     at ConsoleLogger.stringifyMessage (/home/node/app/node_modules/@nestjs/common/services/console-logger.service.js:142:66)
691
backend_1           |     at ConsoleLogger.formatMessage (/home/node/app/node_modules/@nestjs/common/services/console-logger.service.js:132:29)
692
backend_1           |     at /home/node/app/node_modules/@nestjs/common/services/console-logger.service.js:121:43
693
backend_1           |     at Array.forEach (<anonymous>)
694
backend_1           |     at ConsoleLogger.printMessages (/home/node/app/node_modules/@nestjs/common/services/console-logger.service.js:116:18)
695
backend_1           |     at ConsoleLogger.error (/home/node/app/node_modules/@nestjs/common/services/console-logger.service.js:51:14)
696
backend_1           |     at Logger.error (/home/node/app/node_modules/@nestjs/common/services/logger.service.js:44:75)
697
backend_1           |     at descriptor.value (/home/node/app/node_modules/@nestjs/common/services/logger.service.js:165:27)
698
backend_1           |     at Logger.error (/home/node/app/node_modules/@nestjs/common/services/logger.service.js:76:79)
Dominant language
TypeScript
Stars
27
Forks
37
Avg merge
17h 32m
Merged PRs (30d)
38

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SciCatProject/backend

All issues in SciCatProject/backend

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.