Specified ingress_expiry not within expected range

Hi
I am trying to use CanCan and I get the following error, anyone knows where I should start the debug?

I checekd and my local machine has the correct time which is ‘2021-07-29 20:04:09.291 UTC’

Failed to store video. [Error: Server returned an error:
  Code: 400 ()
  Body: Specified ingress_expiry not within expected range:
Minimum allowed expiry: 2021-07-29 11:43:47.330717807 UTC
Maximum allowed expiry: 2021-07-29 11:48:47.330717807 UTC
Provided expiry:        2021-07-29 20:04:09.291 UTC
Local time:             2021-07-29 11:43:47.330718926 UTC
]

Your server time is wrong then?

2 Likes

oops sorry I missed checking that. It was wrong indeed

I have noticed a lot of people do not understand the error message that is generated by ic/rs/src/ validator.rs.

Would it be useful to add the hint “Verify the clock is correctly set on the the client and local server (if developing locally).”

When this error is encountered by newbies, they waste time posting in discord and awaiting a response for assistance.

but how to correct the server time

On local deployment - the server time can be set using the date command.