Mosip pre reg ui

Hello MOSIP Community,

I’m encountering an issue while trying to run the Pre-registration UI locally with a proxy configuration, and I’m hoping someone can help me figure out what’s going wrong.

:bug: Problem Description

My Pre-registration UI seems unable to connect to the backend services. I am getting errors) when trying to access the Pre-registration APIs through my proxy setup.

:gear: My Proxy Configuration (proxy.conf.json)

Here is the proxy.conf.json file I am currently using:

JSON

{
  "/proxyapi": {
    "target": "https://prereg.collab.mosip.net/",
    "secure": false,
    "changeOrigin": true,
    "pathRewrite": {
      "^/proxyapi": ""
    },
    "logLevel": "debug"
  }
}

It is sending data to collab but error is captcha is not

:cross_mark: What I Have Tried

I have tried setting the "target" to several different URLs, but none of them have successfully allowed the UI to communicate with the backend:

  1. "``https://prereg.dev1.mosip.net/``"(not valid)

  2. "``https://api-internal.collab.mosip.net/``"(login doesn’t even loads_

  3. "https://prereg.collab.mosip.net/"

:red_question_mark: Request for Help

  1. Is there a specific, working URL that I should be using as the "target" for the MOSIP Pre-registration backend when running the UI locally?

  2. Does my proxy.conf.json look correct for proxying all requests starting with /proxyapi to the root of the target backend?

  3. Are there any other configuration steps (e.g., specific headers, host settings, or backend environment variables) that I might be missing to successfully connect to a MOSIP environment (like dev1 or collab)?

Hi @Aditya_Karn , Hope you have configured the config.json file with the correct local host url’s as given in the steps. which version of pre- registration ui you are trying to run?

i am using pre-reg-ui(v1.2.0.1)

GitHub - mosip/pre-registration-ui .

i have used the same config.json but it is not working.

{

“BASE_URL”: “https://localhost:4200/proxyapi/”,

“PRE_REG_URL”: “preregistration/v1/”

}

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.