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

Input variable validiations for object values are throwing InternalServerError #1410

Closed
asafigan opened this issue Jul 24, 2018 · 4 comments
Closed
Labels

Comments

@asafigan
Copy link

When passing a object as a input variable, validation on the input type throws internal server error rather than a validation or graphql error.

message:
Variable "$review" got invalid value {"communication":0,"quality":0,"value":0,"creativity":0,"title":"","partnerId":"sldkj"}; Field value.details of required type String! was not provided.

error code:
INTERNAL_SERVER_ERROR

@jbaxleyiii
Copy link
Contributor

Thanks for reporting this issue originally!

If this is still a problem, could someone who's experiencing this problem (or anyone who comes across this issue and is able to assist) mind building a reproduction of the problem into a runnable CodeSandbox reproduction using the latest version of Apollo Server and sharing the link to that CodeSandbox in this issue?

Building reproductions takes a large portion of core contributor's and issue triager's time, particularly when trying to determine if an issue has been resolved in a newer version of Apollo Server, so this would be tremendously helpful.

If this problem is resolved, please feel free to close this issue, otherwise, we will close it if we don't hear back with a reproduction. Thanks!

@glasser
Copy link
Member

glasser commented Apr 6, 2021

Duplicate of #3498

@glasser glasser marked this as a duplicate of #3498 Apr 6, 2021
@glasser
Copy link
Member

glasser commented Apr 9, 2021

I've released a prerelease with this fix, version 2.23.0-alpha.0. Try out the alpha and see if it works for you! Please provide any feedback in #5094.

@glasser
Copy link
Member

glasser commented Apr 14, 2021

This is released in Apollo Server 2.23.0.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants