0

Getting this response but timestamp and path fields are not in my response dto or exceptionHandler. the endpoint in the instances works correctly and returns the second response when deployed initially but some time later the first response starts to return in an unexpected way then after restart the problem is resolved. Why?

Likewise Internal Server Error is not involved codebase or in any bundle.

{
  "timestamp":"2023-07-18T11:30:06+03:00",
  "status":500,
  "error":"Internal Server Error",
  "message":"***",
  "path":"/rest/**/save"
} 

expected response fields are below:

{
    "status": "FAIL",
    "message": "***",
    "errorCode": "**",
    "availableToRetry": false
}

Where does the response come from?

Debugged the exception Handler but it seems normal.

sibari
  • 1
  • 2
  • Looks like endpoint is not correct. Can you post Rest API url here. – vinod_vh Jul 19 '23 at 04:48
  • it's correct. /rest/alternativeRec/save. i debugged the request in the api method but it returns different fields from my response dto. – sibari Jul 19 '23 at 07:49
  • When you debug, what is the response in Service and Controller class? – vinod_vh Jul 20 '23 at 06:13
  • it happens in some prod instances so i can't see this response in local env. in prod when second response expected first one comes out then i just restart the instances and the second response starts to come out as expected. So the endpoint in the instances works correctly when deployed initially but some time later the first response starts to return in an unexpected way then after restart the problem is resolved. Why? – sibari Aug 23 '23 at 09:18

0 Answers0