How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Is there a way to log the full request and response in Spring RestClient on error?

calendar_today May 26, 2026 person Aleksander domain spring-boot

I’ve been stuck on this task for quite a while. It seems simple, whenever an error happens during a RestClient request, I want to log both the request and response data + body for debugging purposes. However, RestClient only seems to support logging request data.

open_in_new Read original post