-
Notifications
You must be signed in to change notification settings - Fork 222
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
Kiota fails when creating a plugin for https://api.github.com/ GET operation #5300
Comments
This error is thrown by the OpenApi library at https://github.com/microsoft/OpenAPI.NET/blob/da3dfd9dc2d67359576606c6ba45783434c207c2/src/Microsoft.OpenApi/Services/OpenApiFilterService.cs#L396 We will need to confirm if the issue here is the input supplied by Kiota. |
This is ultimately caused by calling this method with request urls
For the root URL, we might need to special case the URL we're providing. |
clarifying question for @maisarissi Do you pass the filter option as According to #5344 using We may also need to confirm what input the extension is sending if this scenario is seen on that end.... |
I haven't tried using the CLI. I tried only using the VS Code extension, so the problem might be how the extension is passing the filter option? I see 2 errors from a VS Code extension lens: |
Can confirm the extension is sending the filter argument as
+1 on this. We should probably validate the requestUrls collection in non empty before calling this on the service.
|
Issue isn't yet fixed for the github root GET node. See #5384. Duplicate issue opened after this issue was marked as closed. |
I think it is for @fey101 |
What are you generating using Kiota, clients or plugins?
Kiota plugin
In what context or format are you using Kiota?
Nuget tool
Client library/SDK language
None
Describe the bug
When trying to create a plugin for https://api.github.com/ #GET operation:
I'm getting the following error:
The error message is talking about client and I'm trying to create a plugin.
Also, I can call the endpoint and get data back with no errors:
Expected behavior
The expectation is to successfully create a plugin.
How to reproduce
Try to create a plugin for https://api.github.com/ #GET operation.
Open API description file
No response
Kiota Version
1.18.100000001 (main branch)
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: