SCM returns react error

Goodmorning Team,

we just figured out that SCM manager stopped authenticating our users via LDAP.
We logged in with the local user “scmadmin” and I tried to test the LDAP Connection.

Once I insert the user and password, it returns a React error with a url to visit; when I did visit the url:

— the error reported was:

The full text of the error you just encountered is:

Objects are not valid as a React child (found: SyntaxError: Unexpected token '<', "<html><hea"... is not valid JSON). If you meant to render a collection of children, use an array instead.

Can you please assist us.
Thank you so much.

Hey @igwuborchuks,

it sounds like instead of the expected answer in json format you get an html error page. Please make sure that your LDAP Server is running properly. If you use a reverse proxy you may double check your configuration.

Regards, Eduard

Hi Eduard,

LDAP server runs fine, no other applications returns authentication errors…

For the reverse proxy, we have the following configuration in the httpd.conf:

RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}

ProxyPass /scm http://localhost:8080/scm nocanon
ProxyPassReverse /scm http://localhost:8080/scm

# Relax SCM
<Location /scm>
    Order allow,deny
    Allow from all

The above configuration is not placed in the virtual host 443 section but just directly inside the httpd.conf file as independent.

Am I missing something here?

Thanks in anticipation.
Cheers, Chris.

Hello Chris,

It’s hard to guess if your configuration is correct. It would be best if you could provide us with the HTML page of the failed response. Maybe you can see it in your browser’s development tools? Or intercept the response via ngrep?