You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason import {Connection, Writer, SchemaRegistry, SCHEMA_TYPE_JSON} from 'k6/x/kafka'; makes it such that the response from a gRPC client is empty: const response = client.invoke('auror.Auror/GenerateToken', {secret: "strongpass"});
I have tried removing each exported function from the import statement. But it would seem that just importing k6/x/kafka itself breaks grpc.
This is the code:
import{Connection,Writer,SchemaRegistry,SCHEMA_TYPE_JSON}from'k6/x/kafka';importgrpcfrom"k6/net/grpc";exportdefaultfunction(){client.connect('localhost:3001',{plaintext: true});constresponse=client.invoke('auror.Auror/GenerateToken',{secret: "strongpass"});check(response,{'status is OK': (r)=>r&&r.status===grpc.StatusOK,});console.log(JSON.stringify(response.message));}
For some reason
import {Connection, Writer, SchemaRegistry, SCHEMA_TYPE_JSON} from 'k6/x/kafka';
makes it such that the response from a gRPC client is empty:const response = client.invoke('auror.Auror/GenerateToken', {secret: "strongpass"});
I have tried removing each exported function from the import statement. But it would seem that just importing
k6/x/kafka
itself breaks grpc.This is the code:
This is the output with kafka imported:
This is the output without the import statement:
I'm sure I'm doing something wrong... any ideas?
The text was updated successfully, but these errors were encountered: