-
Notifications
You must be signed in to change notification settings - Fork 9
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
The asyncapi.html endpoint returns the Error: Failed to fetch #112
Comments
Hi @mosaic-aaron, sorry for the late reply, i was on holiday for 3 weeks... May be you are missing some config-properties?
it sounds strange that your endpoint ends with |
Hello, i have the same problem. I have set all variables in application.properties but i have and i don't undestand at all how to use |
@Krasobas do you have at least one method or property in your project annotated with |
Thanks for answer, no I've not annotated my methods before test. Tell me please, does the scanner work only with kafka? I would like to use it for websockets and rest services. async api official docs tell that it's possible. |
there are two modes in this extension:
Depending of your architecture (asyncapi-definition-first or code-first) you have to choose 1 or 2. I did the second part (code-first). Currently it describes Kafka-topics & messages only. The first part is contributed by @fjtirado. Maybe he can help you, if you already have an asyncapi-file. |
Following on @ChMThiel accurate description (thanks ;)) |
This is still an issue, when the page is opened, it could not resolve From the code, schemaUrl is configured to |
@ChMThiel just to follow-up (one year later!), I was finally able to get this extension to work. The root issue is that I had a topic reference named Below is an example of what my original application.yaml configuration looked like: mp:
messaging:
incoming:
incoming.foo.barz:
topic: incoming.foo.barz
auto:
offset:
reset: latest
connector: smallrye-kafka
outgoing:
outgoing.foo.barz:
topic: outgoing.foo.barz
connector: smallrye-kafka If you would like, I can submit a PR for fixing this issue that comes up when the |
@mosaic-aaron feel free to submit an PR |
Hi, great to see that this extension has been created, however, I'm having trouble getting it to work.
Requests made to the Quarkus dev server path of /asyncapi.html results in a 200 response and the rendered text
Error: Failed to fetch
.When inspecting the HTML rendered, I'm seeing an invalid schemaURL set as an attribute of the asyncapi-component:
After fixing this locally, I'm now seeing the following error text emitted as the response from the /asyncapi.html path:
It doesn't appear that the annotation scanning is working as expected. Here's the YAML returned from my application's
/async-api.yaml
endpoint:However, the application I'm developing has a working integration with three different Kafka topics.
Is there an example Quarkus project which demonstrates how this extension works? That will help me to find the root issue.
Dev environment details
quarkus-asyncapi: v0.2.0
Quarkus version: 3.2.2.Final
Java version: JDK 17
Relevant extensions
The text was updated successfully, but these errors were encountered: