Skip to content

Elastic.Transport.UnexpectedTransportException with Indices.GetAsync #8180

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

Closed
feherbbj opened this issue May 6, 2024 · 4 comments
Closed

Comments

@feherbbj
Copy link

feherbbj commented May 6, 2024

Elastic.Clients.Elasticsearch version: 8.12.0

Elasticsearch version: 8.12.2

.NET runtime version: 8.0

Operating system version:

Description of the problem including expected versus actual behavior:
Try to use await client.Indices.GetAsync(....) and it throws
Elastic.Transport.UnexpectedTransportException : The JSON value could not be converted to System.Collections.Generic.ICollection`1[System.String]. Path: $.relations.entry | LineNumber: 0 | BytePositionInLine:

I have an index with a relation:
"mappings": {
"properties": {
.......
"parentChild": {
"type": "join",
"relations": {
"entry": "term"
}
},
.........

Expected behavior
Previously this does not throw any exception and based on the official web site, it is a valid relation still

@feherbbj feherbbj added 8.x Relates to a 8.x client version Category: Bug labels May 6, 2024
@flobernd
Copy link
Member

flobernd commented May 6, 2024

Hi @feherbbj,

just to clarify. Are you really using Elastic.Clients.Elasticsearch 8.12.0?

@feherbbj
Copy link
Author

feherbbj commented May 6, 2024

Yes, i started the migration in this march from 7.x and since there are parallel issue and our caode base is large. I still on 8.12.0. If the issue is fixed in later versions, i might consider upgrading.

@flobernd
Copy link
Member

flobernd commented May 6, 2024

Thanks for the response. Yes, this looks like it is the same bug as in #7871 which meanwhile was fixed.

@feherbbj
Copy link
Author

feherbbj commented May 8, 2024

Thanks for the info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants