Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix("Data Source Connection Error Error: request failed") using ORTHANC LOCAL #4419

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

arnaudberenbaum
Copy link

Context

When following this tutorial : https://docs.ohif.org/configuration/dataSources/dicom-web, I encounter an error "Data Source Connection Error Error: request failed" and could not run the yarn orthanc:up

Changes & Results

Following this post from ALIREZA in https://community.ohif.org/t/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/1750/2
Modifying the files:
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,
},
},
};
}

Testing

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

  • [] My code has been well-documented (function documentation, inline comments,
    etc.)

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] OS: MacOS 15.0.1
  • [] Node version: 21.5.0
  • [] Browser: Opera One(version: 115.0.5297.0) (arm64) and Firefox 131.0.2 (aarch64)

Copy link

netlify bot commented Oct 13, 2024

Deploy Preview for ohif-platform-docs ready!

Name Link
🔨 Latest commit eabe6b3
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/670bc77ef9064b0007d8e425
😎 Deploy Preview https://deploy-preview-4419--ohif-platform-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 13, 2024

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit eabe6b3
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/670bc77e46876a00096c0834
😎 Deploy Preview https://deploy-preview-4419--ohif-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant