REST API debugging - how to enable

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?

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

2 Likes

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

[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!