dagger/dagger · error

request arg %q literal input: %w

Error message

request arg %q literal input: %w

What it means

Wrapped in selectorFromLoadedCall when converting a frame argument's ResultCallLiteral back to an Input value fails (inputValueFromResultCallLiteral). The stored literal form cannot be mapped to a runtime input — e.g. a result ref literal with no resolvable result.

Source

Thrown at dagql/server.go:1888

			if err != nil {
				return Selector{}, fmt.Errorf("request lazy-ref arg %q value as %T (%s) using %T: %w", argSpec.Name, argSpec.Type, argSpec.Type.Type(), argSpec.Type.Decoder(), err)
			}
			args = append(args, NamedInput{Name: argSpec.Name, Value: input})
			continue
		}
		var frameArg *ResultCallArg
		for _, arg := range frame.Args {
			if arg != nil && arg.Name == argSpec.Name {
				frameArg = arg
				break
			}
		}
		if frameArg == nil {
			continue
		}
		inputVal, err := inputValueFromResultCallLiteral(ctx, frameArg.Value)
		if err != nil {
			return Selector{}, fmt.Errorf("request arg %q literal input: %w", argSpec.Name, err)
		}
		input, err := argSpec.Type.Decoder().DecodeInput(inputVal)
		if err != nil {
			return Selector{}, fmt.Errorf("request arg %q value as %T (%s) using %T: %w", argSpec.Name, argSpec.Type, argSpec.Type.Type(), argSpec.Type.Decoder(), err)
		}
		args = append(args, NamedInput{Name: argSpec.Name, Value: input})
	}
	return Selector{
		Field: frame.Field,
		Args:  args,
		Nth:   int(frame.Nth),
		View:  view,
	}, nil
}

// Select evaluates a series of chained field selections starting from the
// given object and assigns the final result value into dest.
//

View on GitHub (pinned to 82ba2681db)

Solutions

  1. Inspect the wrapped literal-conversion error
  2. Ensure referenced results are loaded before building the selector
  3. Store plain literals for arguments that don't need result identity
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at dagql/server.go:1888 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/f798f6a9d0981b2d. Report an issue: GitHub.