2

Spring Fox Swagger issue: I have @ManyToMany relationship in my JPA model classes, but when launching paginated endpoint getting below error.

system.js:461 RangeError: Maximum call stack size exceeded
    at Ct (immutable.js:2494)
    at immutable.js:2408
    at ft.Be.withMutations (immutable.js:1353)
    at immutable.js:2405
    at ft.set (immutable.js:2096)
    at It (immutable.js:2780)
    at Mt.set (immutable.js:2686)
    at immutable.js:2651
    at te.__iterate (immutable.js:418)
    at te.forEach (immutable.js:4381)

I am using

<springfox-swagger-version>2.9.2</springfox-swagger-version>
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger-ui</artifactId>
    <version>${springfox-swagger-version}</version>
</dependency>
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger2</artifactId>
    <version>${springfox-swagger-version}</version>
    <exclusions>
        <exclusion>
            <groupId>io.swagger</groupId>
            <artifactId>swagger-models</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>io.swagger</groupId>
    <artifactId>swagger-models</artifactId>
    <version>1.5.21</version>
</dependency>

enter image description here

Pra_A
  • 7,134
  • 12
  • 89
  • 170
  • super odd, but I have the same issue when I have a single Docket with tag groups. If I move the problematic group to its own Docket, the error goes away... – steve Mar 16 '21 at 23:30
  • I've isolated one part of it to a Docket having a group name with a space in it. If the group name does not have a space, it works as expected... Also it has something in conjunction with specific requests/response. Just haven't figure that out yet. If you post code, that would help. – steve Mar 17 '21 at 03:07
  • @Steve - Could you please show some code or config? – Pra_A Mar 17 '21 at 03:32

0 Answers0