Search code examples
node.jsjmeterjmeter-pluginsjmeter-5.0

when i am jmater executing on the time" time stamp different "is showing i have time stamp code also


when i am j meter executing on the on time" time stamp different "is showing i have time stamp code also i am give but i have got the is error
Request Rejected >> getAccountFromDB . Timestamp Mismatch with Server 'TO CLIENT': '{"ERRORCODE":"520","ERRORMSG":"ERR_INVALID_REQ","MSG":"R

Request Rejected >> getAccountFromDB . Timestamp Mismatch with Server
   'TO CLIENT': '{"ERRORCODE":"520","ERRORMSG":"ERR_INVALID_REQ","MSG":"Request Rejected >> getAccountDetails . Server to Client Time Diff is : 43307(secs)","GUID":""}'

Solution

  • I guess you have a hard-coded (recorded?) timestamp somewhere in your request which is not accepted by the server because the time is not current.

    You need to find this parameter and replace it with __time() function, by default it returns current timestamp in milliseconds since beginning of Unix epoch, if your parameter format is different you can amend the output via SimpleDateFormat patterns.

    More information on JMeter Functions concept: Apache JMeter Functions - An Introduction