Kreya
Kreya copied to clipboard
Error "Value to add was out of range" for google.protobuf.Timestamp
I get error "Value to add was out of range" for google.protobuf.Timestamp. Same request in other app return: "time": { "seconds": "1644314513868", "nanos": 0 }
Log: { "kreyaVersion": "1.7.0", "platform": "MacIntel", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16) AppleWebKit/605.1.15 (KHTML, like Gecko)" } System.ArgumentOutOfRangeException: Value to add was out of range. (Parameter 'value') at System.DateTime.Add(Double value, Int32 scale) at System.DateTime.AddSeconds(Double value) at Kreya.Grpc.Core.Utils.ProtoJsonFormatterWellKnownHelper.TimestampToJson(IMessage value) at Kreya.Grpc.Core.Utils.ProtoJsonFormatter.WriteWellKnownTypeValue(Utf8JsonWriter writer, IMessage value) at Kreya.Grpc.Core.Utils.ProtoJsonFormatter.Format(Utf8JsonWriter writer, IMessage message) at Kreya.Grpc.Core.Utils.ProtoJsonFormatter.WriteFieldValue(Utf8JsonWriter writer, FieldDescriptor field, Object value) at Kreya.Grpc.Core.Utils.ProtoJsonFormatter.WriteMessageFields(Utf8JsonWriter writer, IMessage message) at Kreya.Grpc.Core.Utils.ProtoJsonFormatter.WriteMessage(Utf8JsonWriter writer, IMessage message) at Kreya.Grpc.Core.Utils.ProtoJsonFormatter.Format(Utf8JsonWriter writer, IMessage message) at Kreya.Grpc.Core.Utils.ProtoJsonFormatter.WriteFieldValue(Utf8JsonWriter writer, FieldDescriptor field, Object value) at Kreya.Grpc.Core.Utils.ProtoJsonFormatter.WriteMessageFields(Utf8JsonWriter writer, IMessage message) at Kreya.Grpc.Core.Utils.ProtoJsonFormatter.WriteMessage(Utf8JsonWriter writer, IMessage message) at Kreya.Grpc.Core.Utils.ProtoJsonFormatter.Format(Utf8JsonWriter writer, IMessage message) at Kreya.Grpc.Core.Utils.ProtoJsonFormatter.Format(IMessage message) at Kreya.Grpc.Core.Invoker.AbstractGrpcInvoker.OnResponse(IMessage response) at Kreya.Grpc.Core.Invoker.GrpcUnaryInvoker.SendRequest(IMessage body) at Kreya.Grpc.Core.Invoker.AbstractGrpcInvoker.SendRequest(GrpcRequest request) at Kreya.Core.Invoker.OperationInvoker.SendAllRequestsAndComplete() at SpiderEye.Bridge.ApiMethod.InvokeAsync(Object instance, Object parameter) at SpiderEye.Bridge.WebviewBridge.InvokeWithDependencyInjection(IDependencyInjectionApiMethod apiMethod, Object parameters) at SpiderEye.Bridge.WebviewBridge.InvokeWithDependencyInjection(IDependencyInjectionApiMethod apiMethod, Object parameters) at SpiderEye.Bridge.WebviewBridge.ResolveCall(String id, String parameters)
The value of the seconds part is way too high. The maximum allowed value of the Timestamp is 9999-12-31T23:59:59.999999999Z
, while your value would be somewhere in the year 54110. It looks like the value being sent are milliseconds instead of seconds.
Even though this is an invalid request/response, we'll try to improve Kreya to handle this scenario.