You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please, fix code in update method of PostServiceRealization class.
When you try in swagger to update some post, for example, with id "5f390c7e810fe1a026e7f80", which doesn't exist in repository, you receive incorrect response.
Request:
{
"title": "PostNotFoundException",
"message": "Post by id '5f390c7e810fe1a026e7f80' is not found",
"code": "RPE-001",
"trace": "com.reckue.post.exceptions.models.post.PostNotFoundException: Post by id '5f390c7e810fe1a026e7f80' is not found..."
}
Actual response:
505 Internal Server Error
{
"timestamp": "2020-09-08T20:03:17.714+0000",
"status": 500,
"error": "Internal Server Error",
"message": "No value present",
"path": "/posts/5f390c7e810fe1a026e7f80"
}
The text was updated successfully, but these errors were encountered:
Please, fix code in update method of PostServiceRealization class.
When you try in swagger to update some post, for example, with id "5f390c7e810fe1a026e7f80", which doesn't exist in repository, you receive incorrect response.
Request:
Expected response:
404 Not Found
Actual response:
505 Internal Server Error
The text was updated successfully, but these errors were encountered: