-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
k6 grpc Examples inport error #3571
Comments
Hi @owanio1992 In the k6 v0.49, which just happened, the gRPC experimental module was graduated, and streams became part of the core. The examples in git were updated since the change was merged. So if you update to the v0.49 you could import as: import { Client, Stream } from 'k6/net/grpc'; However, the error doesn't seem related to imports 🤔
seems like the Are you trying to run an unmodified version of the example? |
I tried use v0.49.0
thank very much |
Brief summary
in this doc
https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/grpc/stream/
import { Client, Stream } from 'k6/experimental/grpc';
but in git
https://github.com/grafana/k6/blob/master/examples/grpc_client_streaming.js
https://github.com/grafana/k6/blob/master/examples/grpc_server_streaming.js
it's
and use git script (both
grpc_client_streaming.js
,grpc_server_streaming.js
)it's will get error
k6 version
v0.48.0
OS
linux ubuntu 22
Docker version and image (if applicable)
latst Digest: sha256:4f9845e7f2efc9abdc3aba5d49e96fd6020ea167a722e0014e848409cc9cd4f5
Steps to reproduce the problem
Expected behaviour
no error
Actual behaviour
get error
The text was updated successfully, but these errors were encountered: