How to solve this error "Data Source Connection Error Error: request failed Please ensure the following data source is configured correctly or is running: Orthanc Server"

hi everyone,

I’m encountering an error when trying to connect OHIF Viewer with the Orthanc server
how to solve this error “Data Source Connection Error Error: request failed Please ensure the following data source is configured correctly or is running: Orthanc Server”

  • while i am trying to run “yarn run orthanc:up” and “yarn run dev:orthanc "
    it shows error " “Data Source Connection Error Error: request failed Please ensure the following data source is configured correctly or is running: Orthanc Server””
  • i am using the latest version
  1. viewers> yarn config set workspace-experimental true
  2. viewers> yarn install
  3. viewers> yarn run build
  4. viewers> yarn run dev
  5. viewers\patform> yarn run orthanc:up
  6. viewers\patform>yarn run dev:orthanc

Despite following these steps, I still encounter the error. Could someone help me with the correct path and steps to ensure that everything is configured correctly?
Thanks in advance!

Please submit only one post for your question. I’ve noticed you have two other threads with the same question, making this the third post. I will see your question even with a single post.

Ok seems like you need to do this until i merge a PR

in root package json

"orthanc:up": "docker compose -f platform/app/.recipes/Nginx-Orthanc/docker-compose.yml up",

in platofmr/app package json

"dev:orthanc": "cross-env NODE_ENV=development PROXY_TARGET=http://localhost:3000/pacs/dicom-web PROXY_DOMAIN=http://localhost:8042 PROXY_PATH_REWRITE_FROM=/pacs/dicom-web PROXY_PATH_REWRITE_TO=/dicom-web APP_CONFIG=config/docker-nginx-orthanc.js webpack serve --config .webpack/webpack.pwa.js",

and in webpack.pwa

const PROXY_PATH_REWRITE_FROM = process.env.PROXY_PATH_REWRITE_FROM;

const PROXY_PATH_REWRITE_TO = process.env.PROXY_PATH_REWRITE_TO;

   if (hasProxy) {
    mergedConfig.devServer.proxy = mergedConfig.devServer.proxy || {};
    mergedConfig.devServer.proxy = {
      [PROXY_TARGET]: {
        target: PROXY_DOMAIN,
        changeOrigin: true,
        pathRewrite: {
          [`^${PROXY_PATH_REWRITE_FROM}`]: PROXY_PATH_REWRITE_TO,
        },
      },
    };
  }
1 Like

Make sure

yarn run orthanc:up and yarn run dev:orthanc are run from root

1 Like

Hi @alireza I am running dcm4chee-arc-light secured version and ohif latest image from docker hub.
I am getting this same error as well.

Note: On unsecured dcm4chee, things are working correcrly with same app-config.js.

I updated the master branch