nodejs-logging-winston icon indicating copy to clipboard operation
nodejs-logging-winston copied to clipboard

3 INVALID_ARGUMENT: Timestamp is over a day in the future

Open JMTK opened this issue 1 year ago • 1 comments

Hello! We started receiving this error on our Cloud Instance and we're not quite sure what is causing it, but it seems to originate from doing the log streaming using this package.

I found someone had a similar issue back in 2022, but seemingly no actual fix was put in place: #736

Error: 3 INVALID_ARGUMENT: Timestamp is over a day in the future
  File "/workspace/node_modules/@google-cloud/logging/node_modules/@grpc/grpc-js/src/call.ts", line 82, col 17, in callErrorFromStatus
    const error = new Error(message);

image

From what I can gather about that IP address, it is used for getting information about an instance. I was reading about a similar issue here: https://github.com/googleapis/google-cloud-go/issues/9350

Environment details

  • OS: Ubuntu Linux 22.04
  • Node.js version: v20.14.0
  • npm version: 10.8.1
  • @google-cloud/logging-winston version: 6.0.0

Steps to reproduce

  1. Unsure

JMTK avatar Jul 08 '24 13:07 JMTK

Hi @JMTK , are you still running into this issue? If it's still happening for you, could you share the code snippet that demonstrates how you are formatting timestamp while using nodejs-logging-winston?

cindy-peng avatar Apr 01 '25 19:04 cindy-peng