grafana/k6 · error
coordinate Y is required
Error message
coordinate Y is required
What it means
Error "coordinate Y is required" thrown in grafana/k6.
Source
Thrown at internal/js/modules/k6/webcrypto/jwk.go:141
// Private scalar
D string `json:"d"`
}
func (jwk *ecJWK) validate() error {
if jwk.Kty != JWKECKeyType {
return fmt.Errorf("invalid key type: %s", jwk.Kty)
}
if jwk.Crv == "" {
return errors.New("curve is required")
}
if jwk.X == "" {
return errors.New("coordinate X is required")
}
if jwk.Y == "" {
return errors.New("coordinate Y is required")
}
return nil
}
// encodeCurveBigInt encodes the private scalar D of an ECDSA key with padding.
func encodeCurveBigInt(data *big.Int, curveBits int) string {
// Determine the expected byte length for the curve
byteLength := curveBits / 8
// Add one more byte if the bits are not a multiple of 8
if curveBits%8 != 0 {
byteLength++
}
dBytes := data.Bytes()
dPadded := padLeft(dBytes, byteLength) // Pad if necessary
return base64URLEncode(dPadded)View on GitHub (pinned to 93accf6570)
When it happens
Trigger: Thrown at internal/js/modules/k6/webcrypto/jwk.go:141 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@93accf6570 (2026-08-15).
Data as JSON: /api/errors/92e819afee857b11.
Report an issue: GitHub.