dagger/dagger · error

failed to call sdk module generate client: %w

Error message

failed to call sdk module generate client: %w

What it means

The dagql select of the SDK module's generateClient field failed after all arguments (modSource ID, introspection JSON ID, outputDir) were prepared. This is the actual SDK-side client generation failure — runtime container error, SDK bug, or rejected inputs.

Source

Thrown at core/sdk/module_client_generator.go:94

			Name:  "modSource",
			Value: dagql.NewID[*core.ModuleSource](modSourceID),
		},
		{
			Name:  "introspectionJson",
			Value: dagql.NewID[*core.File](schemaJSONFileID),
		},
		{
			Name:  "outputDir",
			Value: dagql.String(outputDir),
		},
	}

	err = dag.Select(ctx, sdkInst.sdk, &inst, dagql.Selector{
		Field: "generateClient",
		Args:  generateClientsArgs,
	})
	if err != nil {
		return inst, fmt.Errorf("failed to call sdk module generate client: %w", err)
	}
	return inst, nil
}

View on GitHub (pinned to 82ba2681db)

Solutions

  1. Read the wrapped SDK error and generated-client container logs
  2. Validate the module source and schema JSON are well-formed
  3. Retry; check SDK module version compatibility with the engine
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at core/sdk/module_client_generator.go:94 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of dagger/dagger@82ba2681db (2026-09-05). Data as JSON: /api/errors/36a0aa72923e059e. Report an issue: GitHub.