Skip to content

GraphQL conection hang up with message: { type: 'complete' } #35

Description

@bartosz546

Hi!

I am building application which synchronizes live with EOS blockchain. I established graphQL connection like this using dfuse-js:

this.dFuseClient.graphql(graphQLQuery, async (message) => { // do something });

My connection hang up after a few days and I am wondering how can I prevent it in the future?
I think terminal message I got was:

console.log(message); // { type: 'complete' }

and just in case one error message before I got:

console.log(message); // { type: 'error', errors: [ { message: 'graphql: hammer search result: rpc error: code = Unavailable desc = transport is closing (trace_id: 4bba6b2d211cb515713be5698c2014e1)' } ], terminal: true }

What should I do in such situation?
How can I make sure connection was closed so I can re establish it?
Or how to make sure connection won't hang up?

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