hasura/graphql-engine · error

schema dump for source %s of kind %v is not supported

Error message

schema dump for source %s of kind %v is not supported

What it means

ExportSchemaDump only supports dumping for certain source kinds; for any other kind it returns this error stating schema dump is unsupported for that source name/kind combination.

Source

Thrown at cli/migrate/database/hasuradb/schema_dump.go:58

			return nil, errors.E(op, err)
		}

		bs, err := io.ReadAll(resp)
		if err != nil {
			return nil, errors.E(
				op,
				errors.KindHasuraAPI,
				fmt.Errorf("reading response from schema dump api: %w", err),
			)
		}

		return bs, nil
	}

	return nil, errors.E(
		op,
		fmt.Errorf("schema dump for source %s of kind %v is not supported", sourceName, sourceKind),
	)
}

View on GitHub (pinned to 724551b9ae)

Solutions

  1. Run schema dump against a postgres source
  2. Upgrade the CLI if newer versions support your source kind
  3. Explicitly pass the correct source name
Defensive patterns

Strategy: validation

Validate before calling

if sourceKind != "postgres" {
    return fmt.Errorf("schema dump unsupported for kind %q; use postgres", sourceKind)
}

Prevention

When it happens

Trigger: Calling ExportSchemaDump with a sourceKind the function has no branch for (e.g. mssql, bigquery, or an empty source name on multi-source setups in older versions).

Common situations: Trying `hasura migrate create --from-schema` or export flows against a non-postgres source, or omitting the source name on multi-source instances.

Related errors


AI-assisted analysis of hasura/graphql-engine@724551b9ae (2026-08-28). Data as JSON: /api/errors/683ae82b8a993ac1. Report an issue: GitHub.