Menu
Open source

Error

Caution

Starting on k6 v0.49, the experimental module k6/experimental/grpc has been graduated, and its functionality is now available in the k6/net/grpc module. The k6/experimental/grpc is deprecated and will be removed in v0.51.0.

To migrate your scripts, replace all k6/experimental/grpc imports with k6/net/grpc.

The error object is the object that is passed to the error event handler function.

NameTypeDescription
Error.codenumberA gRPC error code.
Error.detailsarrayA list details attached to the error.
Error.messagestringAn original error message.