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]: dotnet emitter crashes with error: "An item with the same key has already been added. Key: status" #6005

Open
4 tasks done
xiangyan99 opened this issue Feb 13, 2025 · 1 comment
Labels
bug Something isn't working emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Comments

@xiangyan99
Copy link
Member

Describe the bug

Transferred from Azure/autorest.csharp#5218

I created PR Azure/azure-rest-api-specs#31123 to migrate Search from swagger to tsp.

The tsp project can be found at https://github.com/Azure/azure-rest-api-specs/tree/search_tsp/specification/search/Azure.Search.

The emitter crashes with error:

System.ArgumentException: An item with the same key has already been added. Key: status

https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4541949&view=logs&j=2be18a23-047c-5c9f-61d7-60a33437d1f1&t=90227b5e-3523-5803-3e16-3788cf693a16&l=476

We need to identify the blockers for the search TSP migration, and this issue is preventing us from making further progress.

We would appreciate it if you could prioritize it, if possible.

Thank you!

Reproduction

As described in the description.

Checklist

@xiangyan99 xiangyan99 added the bug Something isn't working label Feb 13, 2025
@xiangyan99 xiangyan99 added emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp and removed needs-area labels Feb 13, 2025
@JoshLove-msft
Copy link
Contributor

This is an issue in autorest.csharp generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp
Projects
None yet
Development

No branches or pull requests

2 participants