-
Notifications
You must be signed in to change notification settings - Fork 57
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
Error: Maximum call stack size exceeded #123
Comments
Hmmm 🤔 does your |
Hiii!! I have detect the problem, is the class Exception of .netCore. If the class have one attribute of this class I will have the error of "maximum call stack". I send you my test: `
The version is 0.8.0 Thanks for the help! |
Just had a deeper look into this. From your test case the asyncapi.json document is being generated correctly, but the AsyncAPI UI is unable to render it. As a minimal example the following will produce the asyncapi: 2.2.0
info:
title: Streetlights API
version: 1.0.0
channels:
publish/light/measured:
publish:
operationId: MeasureLight
message:
payload:
$ref: '#/components/schemas/lightMeasuredEvent'
name: lightMeasuredEvent
components:
schemas:
lightMeasuredEvent:
id: lightMeasuredEvent
type: object
properties:
ex:
oneOf:
- type: 'null'
- $ref: '#/components/schemas/exception'
exception:
id: exception
type: object
properties:
Message:
type: string
InnerException:
oneOf:
- type: 'null'
- $ref: '#/components/schemas/exception' # <--- if we remove this self-reference, the UI renders fine. I will raise this issue with the asyncapi team. |
This has been fixed by the asyncapi team and updated in Saunter #144 |
Fixed in v0.10.0 https://www.nuget.org/packages/Saunter/0.10.0 |
Good morning,
I have a DDD project in .netCore in differents projects. I have configured the asyncApi and it works because the annotations are in the controller. But when I add this annotations in "Application" shape and modify the assembly taking one class of all the project I have this error:
Error: Maximum call stack size exceeded
I have this structure:
StartUp:
ProjectApplication:
Thanks!!!
The text was updated successfully, but these errors were encountered: