-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
gRPC JSON transcoding documentation with Swagger / OpenAPI error #50177
Comments
This sounds a lot like what @captainsafia fixed in #49393 |
@captainsafia can you take a look at this? |
@Varorbc Are you able to share a repro for this issue? From the original details in your report, this error is expected because it appears that you have enabled |
Hi @Varorbc. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@captainsafia I followed the tutorial and enabled Aot |
@Varorbc Do you repro the issue when you enable AoT without configuring the Swagger? FYI, although you see Swagger UI middleware in the stacktrace, this is an artifact of the way the Swashbuckle is configured in the middleware pipeline and not exactly related to it. The exception message you've shared with me leads me to believe that it's related to enabling AoT in your application and not having the STJ generator enabled in your project per the instructions above. If you're able to upload a repro of your project to GitHub, that might also help. |
Hi @Varorbc. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@Varorbc Can you please share that as a public GitHub repo? Per policy we don't open zips. |
@adityamandaleeka I'm done |
Thank you @Varorbc! |
Thanks, @Varorbc! It looks like you are running into domaindrivendev/Swashbuckle.AspNetCore#2550. The Since this impacts the UI, you can try downloading the OpenAPI JSON definition and uploading it to a tool like Postman to interact with it visually. |
Hi @Varorbc. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
Is there an existing issue for this?
Describe the bug
I followed the tutorial and enabled Aot, the program got an exception
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: