Kong/insomnia · error

Failed to query : no data returned

Error message

Failed to query ${name}: no data returned

What it means

Guard in VCS._runGraphQL: the GraphQL operation completed without errors but the data field is null/undefined, so the expected payload is missing from the sync backend response. The operation name is interpolated.

Solutions

  1. Retry the operation
  2. Verify the query matches the backend schema (fields may return null)
  3. Check session/account state if responses are consistently empty
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at packages/insomnia-vcs/src/vcs.ts:973 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26). Data as JSON: /api/errors/ae11b4ed3e4e25d9. Report an issue: GitHub.

Appendix: source

Thrown at packages/insomnia-vcs/src/vcs.ts:973

    return snapshot;
  }

  async _runGraphQL<T>(query: string, variables: Record<string, any>, name: string): Promise<T> {
    const { sessionId } = await this._assertSession();
    const { data, errors } = await runVcsGraphQL<T>({
      query,
      variables,
      sessionId,
      name,
    });

    if (errors && errors.length) {
      console.log(`[sync] Failed to query ${name}`, errors);
      throw new Error(`Failed to query ${name}: ${errors[0].message}`);
    }

    if (data == null) {
      throw new Error(`Failed to query ${name}: no data returned`);
    }

    return data;
  }

  async _queryBlobsMissing(ids: string[]): Promise<string[]> {
    const { blobsMissing } = await this._runGraphQL<{ blobsMissing: { missing: string[] } }>(
      `
          query ($projectId: ID!, $ids: [ID!]!) {
            blobsMissing(project: $projectId, ids: $ids) {
              missing
            }
          }
        `,
      {
        ids,
        projectId: this._backendProjectId(),
      },

View on GitHub (pinned to d9bb2b0142)