graphql / vscode-graphql

MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
MIT License
555 stars 71 forks source link

Getting NetworkHelper: operation: query #108

Closed mattharder91 closed 4 years ago

mattharder91 commented 5 years ago

Actual Behavior

Hi when executing a query through the extension i am getting the error

Error opening content and in the output terminal I get the error Getting NetworkHelper: operation: query

Expected Behavior

Getting the result of the query or at least an explanation why the query failed

Steps to Reproduce the Problem Or Description

  1. Executing the query:

import "./XFragment.gql"

query xs {
  xs {
    x {
      ...X
    }
    success
    message
  }
}

my Configuration:

{
  "projects": {
    "myproject": {
      "schemaPath": "schema.graphql",
      "extensions": {
        "endpoints": {
          "default": {
            "url": "http://localhost:3000/api",
            "Authorization": "Bearer mytoken"
          }
        }
      }
    }
  }
}

Specifications

Logs Of TS Server || GraphQL Language Service

NetworkHelper: operation: query

divyenduz commented 5 years ago

@mattharder91 You should get the GraphQL/network errors in the pane that is also supposed to show the result on success. Does that not happen in your case?

For example, if I run a query against a server that is not running, I get this error:

image

acao commented 4 years ago

@mattharder91 I found a few edge cases where this had regressed, and was able to fully restore the error handling