Open moraKevin opened 1 year ago
cc @bzp2010
Just a follow-up: Upon further testing, I discovered that a single endpoint from the .yaml file was causing the issue. When the request body of that endpoint was removed, all worked properly. The request body of that endpoint was:
requestBody:
content: '*/*':
schema: $ref: '#/components/schemas/SystemSchema'
required: false
The 'SystemSchema' contained around 35 parameters, so it was quite large, maybe that was the issue?
The 'SystemSchema' contained around 35 parameters, so it was quite large, maybe that was the issue?
I also tested with this number of files and found no problems in the latest version.
Current Behavior
Greetings, everyone!
When importing an openAPI .yaml file in the APISIX Dashboard, if the file has more than a couple of endpoints described (usually 4 or 5 is enough for the bug to occur), the dashboard throws a Network error and a stack overflow error is thrown in the dashboard logs.
I have tried importing a .yaml file with only 1 or 2 endpoints, and all goes well. However, when adding a couple more endpoints, the behavior above described happens, and the dashboard crashes.
Expected Behavior
It should be possible to import an openAPI .yaml file with more than a few endpoints without the dashboard crashing
Error Logs
Steps to Reproduce
manager-api -p /usr/local/apisix/dashboard/
commandEnvironment