-
Notifications
You must be signed in to change notification settings - Fork 222
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
Scala 3: Exception returning Future values from GraphQL Endpoint #906
Comments
Error messages sound aweful familiar to #449 |
Hi, Is there a known cause or a workaround for this issue? I guess I'm encountering it on a project that I am upgrading to Scala 3. On a case class body I add: @GraphQLField
@GraphQLName("myString")
def graphqlMyString: Future[String] = Future.successful("Hello World") A unit test breaks with:
|
I'm not aware of any fixes for this issue for now. |
I encountered the same error today while migrating our project to Scala 3. |
I'd encourage all people having this issue to try helping on the PR #1168 |
When attempting to return values from a GraphQL endpoint using Sangria and Scala 3, I get the following exception:
I am able to successfully get a schema from the running GraphQL server.
Since this particular error relies on having a running GraphQL server, it'll be a little difficult for me to create a miniature isolated code sample. I might make an attempt at creating an isolated sample, but that would take some time. If you cannot reproduce, let me know here on the ticket. (I'll try to monitor the ticket).
It appears to only happen when returning a
Future
. The following returns just fine.The text was updated successfully, but these errors were encountered: