Open rdrimmie-miovision opened 2 months ago
Oh, this is using v3.2 of the client
@rdrimmie-miovision thanks for filing this issue!
@rdrimmie-miovision this should be fixed in version 3.2.1
https://github.com/trycourier/courier-java/commit/2cd7dac781c1a3ee075fa5e81f3a6bdddf73d5dc which will be published shortly
Amazing! Thanks so much!
@dsinghvi It looks as though the push to maven ci job failed: https://github.com/trycourier/courier-java/actions/runs/10064790025/job/27837079790
Hey folks, it looks as though the code generated for the java sdk is using java int datatypes for properties that hold ms since epoch values. Unfortunately, ms since epoch values are considerably higher than the upper bounds of a java int so it is impossible to work with the response to a SendMessageRequest because the application crashes with an out of bounds error.
in this example, assignment to
foo
fails with the error that follows.This appears to occur because the source is generated with the
enqueued
property defined as a java int https://github.com/trycourier/courier-java/blob/main/src/main/java/com/courier/api/resources/messages/types/MessageDetails.java#L27But per the api docs https://www.courier.com/docs/reference/logs/by-id/:
The UTC time
Tue Jul 23 2024 17:49:43.064
in ms since the epoch has the value1721756983064
, and that is well out of bounds for a Java int.