# REST API debugging - how to enable

**URL:** https://meta.discourse.org/t/rest-api-debugging-how-to-enable/351310
**Category:** Support
**Created:** [February 9, 2025, 8:16am UTC](https://meta.discourse.org/t/rest-api-debugging-how-to-enable/351310 "2025-02-09T08:16:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![francis\_exalate](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francis_exalate/32/461390_2.png) [@francis\_exalate](https://meta.discourse.org/u/francis_exalate)
#### Post date: [February 9, 2025, 8:16am UTC](https://meta.discourse.org/t/rest-api-debugging-how-to-enable/351310/1 "2025-02-09T08:16:52Z")

</div>

I’m doing a REST call to /uploads.json, which works fine in postman, but not in the client that I’m writing.

Discourse response contains an empty string - probably I’m missing something.  
Is there another approach to see how an incoming REST call gets processed and why a 400 response is generated?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 9, 2025, 1:37pm UTC](https://meta.discourse.org/t/rest-api-debugging-how-to-enable/351310/2 "2025-02-09T13:37:07Z")

</div>

You can look at /var/discourse/shared/standalone/logs/rails/production.log

---

<div class="post-metadata">

### Author: ![francis\_exalate](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francis_exalate/32/461390_2.png) [@francis\_exalate](https://meta.discourse.org/u/francis_exalate)
#### Post date: [February 10, 2025, 8:30am UTC](https://meta.discourse.org/t/rest-api-debugging-how-to-enable/351310/3 "2025-02-10T08:30:05Z")

</div>

I’m using the docker image provided by tiredofit/discourse, and apparently there is no production.log

```plaintext
[tiredofit/discourse:3.2.2 08:28:46 ~] $ find / -name production.log
[tiredofit/discourse:3.2.2 08:29:02 ~] $

```

I took another route and used the postman proxy to see what the app is sending (instead of trying to find it in the log).

Thanks!

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [September 17, 2025, 11:10pm UTC](https://meta.discourse.org/t/rest-api-debugging-how-to-enable/351310/4 "2025-09-17T23:10:17Z")

</div>


