Click or drag to resize

InvalidRequestExceptionIsDueToInvalidRequestTimestamp Property

Returns true if this failure came in response to a request that was sent with an invalid timestamp, typically caused by an out-of-sync clock on the client machine.

Namespace: DegreeDays.Api
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public bool IsDueToInvalidRequestTimestamp { get; }

Property Value

Boolean
Remarks

When a request is packaged up and sent to the API servers, a timestamp is included to indicate the time, in UTC (GMT), that the request was sent. This timestamp is checked against the server's clock as part of a system designed to prevent unwanted replays of previous requests.

This type of failure can occur if the client's clock is badly out of sync (like 15 minutes or more from the real time). If the computer's clock looks right, and you're still getting this type of failure, then it's possible that the computer's clock is set with the wrong time-zone. The timestamps sent to the server are UTC timestamps, and, unless the computer's time-zone is set correctly, its concept of UTC time is likely to be out by at least an hour.

See Also