Skip to content
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

bug: Generating a client for the valid OpenAPI specification file (3.0.3) throws an exception #3756

Closed
rodion-m opened this issue Nov 20, 2023 · 1 comment · Fixed by #3758
Assignees
Labels
generator Issues or improvements relater to generation capabilities. type:bug A broken experience WIP
Milestone

Comments

@rodion-m
Copy link

rodion-m commented Nov 20, 2023

The command:

kiota generate -l CSharp -c GeneratedClient -n HH.GeneratedApiClientLib -d hh_openapi.yml -o generated

Failed with exception:

crit: Kiota.Builder.KiotaBuilder[0]
      error generating the client: One or more errors occurred. (One or more errors occurred. (One or more errors occurred. (startIndex cannot be larger than length of string. (Parameter 'startIndex'))))

The sample file is: https://1drv.ms/u/s!Ao3QCz3ZIQ1_gbFDjTRvpguwmX3lEg?e=l4UKUv

Logs: .kiota.log

By the way, is there an ability to see the exception stacktrace?

@github-project-automation github-project-automation bot moved this to Todo in Kiota Nov 20, 2023
@rodion-m rodion-m changed the title Exception while generating a client for the valid OpenAPI specfication file (3.0.3). bug: Generating a client for the valid OpenAPI specfication file (3.0.3) throws an exception Nov 20, 2023
@rodion-m rodion-m changed the title bug: Generating a client for the valid OpenAPI specfication file (3.0.3) throws an exception bug: Generating a client for the valid OpenAPI specification file (3.0.3) throws an exception Nov 20, 2023
@baywet baywet self-assigned this Nov 20, 2023
@baywet baywet added type:bug A broken experience generator Issues or improvements relater to generation capabilities. labels Nov 20, 2023
@baywet baywet added this to the Kiota v1.9 milestone Nov 20, 2023
@baywet
Copy link
Member

baywet commented Nov 20, 2023

Thanks for using kiota and for reporting this.
I authored #3758 to address this (and a subsequent) issue.

@github-project-automation github-project-automation bot moved this from Todo to Done in Kiota Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generator Issues or improvements relater to generation capabilities. type:bug A broken experience WIP
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants