Issue when logging into CHT Instance after creating a new user

Hello,

Within our cht instance we have created a user known as test and assigned the role chw to the user. This is the config for the user;


Our instance has the following structure for area and contact

We are facing issues when trying to login the new user (test1) into the instance and we are prompted this error;

But I’m able to login successfully using the admin account. Kindly help.

Hi @Kenyuri

Can you please the browser console? it looks like there are some errors there that might be helpful to diagnose this.

Hi @diana

This what I’m getting from the console

Thanks for sharing. This looks like there’s something happening with your instance on a server level, and an incorrect response is reaching the client, sending html instead of JSON.

Can you give us more details about how your instance is set up?

Hello @diana,

yes this is the main issue:

it seems that the backend is sending a 404 error with json response whille “fetching the info”. The frontend is parsing this json file during this initial setup.

But in our case the response with 404 status are caught by the proxy and a user friendly message in html is sent. So we need to configure our proxy (F5).

Thanks

1 Like

Nice work identifying this!

I suggest you configure the proxy to never catch and modify CHT responses, otherwise you risk exposing yourself to all sorts of other surprises like this - which might be less obvious to debug.