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

Intermitted InvalidCastException in HotChocolate pipeline during error reporting #5825

Closed
1 task done
Andrej-Peplinski opened this issue Feb 10, 2023 · 16 comments · Fixed by #6394
Closed
1 task done
Assignees
Milestone

Comments

@Andrej-Peplinski
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Product

Hot Chocolate

Describe the bug

During testing we find that HotChocolate (v.13.0.0 and v.13.0.2) throw an InvalidCastException when reporting errors (see screenshot). Unfortunately the error does not occur repeatably but only once in a while. I have therefore attached a dump file for further analysis. Please ping me if you need further information.

image

Steps to reproduce

  1. Suggest to do dump analysis

Relevant log output

No response

Additional Context?

No response

Version

13.0.2

@Andrej-Peplinski
Copy link
Author

BTW, I forgot to mention that the dump file was taken on a Windows machine using the VS save dump command. If for some reason you cannot analyze it on your Mac then please let me know and I can try to provide other information.

@michaelstaib
Copy link
Member

This issue is bugging me :) Thanks for your help with the informations you provided.

@michaelstaib michaelstaib added this to the HC-13.0.3 milestone Feb 16, 2023
@prodrammer
Copy link

@michaelstaib It appears to be the same error mentioned in #5400.

@RobinVangampelaere
Copy link

Any updates on this? We are finding the same results. Using package version 13.0.5.

An extra piece of information is that we are using the 'OnError'-method from the IErrorFilter-filter. This method executes two times. Once with the correct IError and immediately after that a second time with the error: 'Exception: Unable to cast object of type 'RootPathSegment' to type 'HotChocolate.IndexerPathSegment'.'

Any updates on this would be appreciated.

@sergiu-enache
Copy link

sergiu-enache commented May 5, 2023

I can confirm seeing the same logs once in a while in production for mutations, using package version 13.0.5.

Whats even weirder is that we get random short periods with these errors
image

@Andrej-Peplinski
Copy link
Author

The same problem has also been mentioned on the slack channel by Peter Simon: https://hotchocolategraphql.slack.com/archives/CD9TNKT8T/p1683547149505519

@RobinVangampelaere
Copy link

Do you happen to have any updates on this? This bug is preventing us from upgrading to v13.

@bcherniakh
Copy link

Facing the same issue in production.

@michaelstaib michaelstaib modified the milestones: HC-13.x.x, HC-13.6.0 Jun 7, 2023
@onionhammer
Copy link
Contributor

onionhammer commented Jun 22, 2023

Happening for me as well (in production)

@onionhammer
Copy link
Contributor

I'm getting this a lot now, is there any workaround for this? A pattern I can avoid?

@SivkovSavely
Copy link

we upgraded to the version 13 (from 12) and started getting the same exception

is there any workaround?

@michaelstaib michaelstaib modified the milestones: HC-13.6.0, HC-13.5.0 Jul 25, 2023
@michaelstaib
Copy link
Member

This is fixed on my internal branch ... I have moved it to the next dot release 13.5.

@michaelstaib
Copy link
Member

Needs a bit more testing though :)

@onionhammer
Copy link
Contributor

Any update on this one?

@michaelstaib
Copy link
Member

This is fixed

@michaelstaib
Copy link
Member

in 13.5.0-preview.21

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

Successfully merging a pull request may close this issue.

9 participants