K6 is sending empty text for datetime string

Hey team

I am trying to test a GRPC Service that is implementing the Value kind from Protobuf and when I am sending an string_value for a Date time it seems K6 is parsing it as a null text

My request contains an object like this:

const data = {
    value: {
        string_value: "2023-01-01T00:00:00Z"
   }
}

I am seeing on the logs that this comes as empty Text.

java.time.format.DateTimeParseException: Text '' could not be parsed at index 0

If I run the exact same request using Postman it works as expected

Hi @LucasHartridge,
thanks for sharing this issue. I checked your report and verified that Value isn’t supported at the moment.
I’ve opened an issue for adding it, please subscribe so you can be notified when it will be available.

If you have the capacity feel free to submit a contribution for fixing it.

2 Likes

@LucasHartridge
You can call your service like this:

const data = {
    value: "2023-01-01T00:00:00Z"
}
2 Likes

@bandorko - Thanks for your comment it actually works, but we should continue with the Github issue since Value should be supported

1 Like