Skip to content

Unhandled exception. System.InvalidOperationException: no implementation of "GraphQL.Client.Abstractions.Websocket.IGraphQLWebsocketJsonSerializer" found #171

@pysiak

Description

@pysiak

Crazy! Before the weekend this:
GraphQLHttpClient gql = new GraphQLHttpClient(_config["API:Endpoint"]);
worked for me. Now I'm getting this:

Unhandled exception. System.InvalidOperationException: no implementation of "GraphQL.Client.Abstractions.Websocket.IGraphQLWebsocketJsonSerializer" found
   at GraphQL.Client.Abstractions.GraphQLJsonSerializerExtensions.EnsureAssigned[TSerializerInterface](TSerializerInterface jsonSerializer)
   at GraphQL.Client.Http.GraphQLHttpClient..ctor(GraphQLHttpClientOptions options, HttpClient httpClient)
   at GraphQL.Client.Http.GraphQLHttpClient..ctor(GraphQLHttpClientOptions options)
   at GraphQL.Client.Http.GraphQLHttpClient..ctor(Action`1 configure)
   at GraphQL.Client.Http.GraphQLHttpClient..ctor(Uri endPoint)
   at GraphQL.Client.Http.GraphQLHttpClient..ctor(String endPoint)
   at ConsoleApp1.Program.GetCourses() in C:\...
   at ConsoleApp1.Program.Main(String[] args) in C:\...
   at ConsoleApp1.Program.<Main>(String[] args)

I tried: restoring packages, uninstalling and installing. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions