Project

General

Profile

REST API: GET working but POST failing with error 502

Added by Anton Shepelev almost 4 years ago

Hello, all

We use Remine 4.1.1 with Apache 2.4.46 as bundled by the _Bitnami Remine Stack_, and the REST API works only for reading, that is GET requests work but POST requests all fail with error 502:

Title: Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request.
Reason: Error reading from remote server.

The Apache error log shows two entries for each failed POST request:
[Tue Dec 01 19:33:39.439905 2020] [proxy_http:error] [pid 7108:tid 1068] (20014)Internal error (specific information not available): [client 127.0.0.1:52231] AH01102: error reading status line from remote server 127.0.0.1:3002
[Tue Dec 01 19:33:39.439905 2020] [proxy:error] [pid 7108:tid 1068] [client 127.0.0.1:52231] AH00898: Error reading from remote server returned by /redmine/issues.json

I have already asked at the _Bitnami forums_, but a poster there suggested that I ask it here as well.


Replies (2)

RE: REST API: GET working but POST failing with error 502 - Added by Anton Shepelev almost 4 years ago

Update

With the :debug log level, successful GET requests appear in production.log, but POST requests that fail with error 502 do not. Does that mean Redmine does not receive them, and I have to troubleshoot Apache?

RE: REST API: GET working but POST failing with error 502 - Added by Anton Shepelev almost 4 years ago

Yann Ylavic has solved this problem for me on the httpd mailing list. I had to add the line

Proxy100Continue off

to the httpd config.

    (1-2/2)