# Log HTTP requests

**URL:** <https://community.n8n.io/t/log-http-requests/198716>\
**Category:** Feature Requests\
**Created:** [October 3, 2025, 6:12am UTC](https://community.n8n.io/t/log-http-requests/198716 "2025-10-03T06:12:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric-burel](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/eric-burel/32/116641_2.png) [@eric-burel](https://community.n8n.io/u/eric-burel)\
**Post date:** [October 3, 2025, 6:12am UTC](https://community.n8n.io/t/log-http-requests/198716/1 "2025-10-03T06:12:14Z")

</div>

## The idea is:

Logging HTTP requests server-side using an environment variables.

## My use case:

Debugging HTTP requests created by nodes. This is extremely useful for nodes that connects to complex APIs.

## I think it would be beneficial to add this because:

This would vastly improve the debugging experience for developers.

For example, I’ve hit a tiny bug in the Google Calendar node, leading to a “400 Bad request” response: [Google Calendar node fails with Luxon-formatted date from Google Sheets (works with hardcoded string)](http://community.n8n.io/t/google-calendar-node-fails-with-luxon-formatted-date-from-google-sheets-works-with-hardcoded-string/177385)

But I don’t have enough visibility to debug it because I can’t see the HTTP request.

## Any resources to support this?

N8n is using Axios under the hood. Logging is setup using an interceptor, basically just a tiny function that logs the request.

Previous question on this topic:

> [@Log http request](http://community.n8n.io/t/log-http-request/2201/5):
>
> Up: I’ve explored n8n current codebase and it uses Axios. Axios doesn’t have an environment variable to enable debugging as it doesn’t use the “debug” package. Instead an interceptor has to be configured, Axios docs lists a few solutions: \* [axios-response-logger]([GitHub - srph/axios-response-logger: megaphone Axios interceptor which logs responses](https://github.com/srph/axios-response-logger)) - Axios interceptor which logs responses \* [axios-debug-log]([GitHub - Gerhut/axios-debug-log: Axios interceptor of logging request & response with debu…](https://github.com/Gerhut/axios-debug-log)

This feature used to exist indirectly when N8n was using request-promise, but Axios doesn’t have logging enabled via an environment variable out of the box, so n8n can’t do that either anymore.

Other related discussion: [Is there a way to inspect the actual http requests in n8n?](http://community.n8n.io/t/is-there-a-way-to-inspect-the-actual-http-requests-in-n8n/20573)  
It would rely on setting up a convoluted observability system by proxying HTTP requests, that’s not realistic for most users even advanced.

## Are you willing to work on this?

Yes I can contribute to the n8n codebase.

For implementation, the logging Axios interceptor would be attached when “N8N\_LOG\_HTTP\_REQUESTS” is “1” for instance.

The relevant file in the codebase is : packages/core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts
