Skip to content

executing a subscription operation without a subscription type defined results in call of hive sdk usage reporting #2530

Description

@n1ru4l

Gateway Setup:

  • Serve schema without subscription type
  • Set up usage reporting to hive console

Ways to reproduce:

  • Attempt to execute a subscription operation against the Gateways GraphQL endpoint

Expected outcome:

  • The Hive SDK is not being called

Actual outcome:

  • The Hive SDK is called for reporting the subscription operation, causing a runtime exception as the schema coordinates can not be determined.

A fix to prevent and catch an unhandled exception from the Hive SDK has been implemented in graphql-hive/console@3dbda7d. However, this does not mitigate the fact that the usage reporting should not have been called in the first place.

Internal Source:

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions