Unable to load the application with a CHW user

I’m trying to build an App with the cht-core.
I have upload contact and app forms.
But when I try to connect to the app with a chw account, I get this error:
An SSL certificate error occurred when fetching the script.

inbox.js:3 Error bootstrapping DOMException: Failed to register a ServiceWorker for scope (‘’) with script (‘’): An SSL certificate error occurred when fetching the script.

See below images


Hi @diallotafsir52, welcome to the community.

We are trying to solve the issue similar to what you are facing and it is being tracked here in the cht-core repo.

Meanwhile, you can use a workaround that we suggest for testing the app locally to get around the valid SSL requirement for service workers:

  1. Create a ngrok account at https://ngrok.com/
  2. Follow instructions on downloading and linking your computer (server) to your ngrok account.
  3. Start ngrok by executing: ./ngrok http 443 from your server

Then you should be able to access the app from the https:// URL provided by ngrok and use your CHW account to log in.

If the above method with ngrok does not work, please try a similar service serveo following this guide.



Had the same issue and ngrok works. Thanks!

1 Like

Thank you. Ngrok works for me.

1 Like