QuPath MonaiLabel Server Authentication #966
Replies: 2 comments 4 replies
-
Hi @Mena-SA-Kamel, Thanks for opening this discussion. The current MONAI Label + QuPath implementation requires both server and client to be on the same PC. Transferring histopathological images from the server to the client will take a significant amount of time.
Do you mean the MONAI Label server? It shouldn't require this. Can you please post the MONAI Label logs? |
Beta Was this translation helpful? Give feedback.
-
And we do welcome any contributions that can help to enhance it further.. please feel free to contribute to MONAILabel in that direction.. it's a open source project :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All,
I am trying to connect QuPath to a MonaiLabel server running on a remote host. The host requires authentication via some credentials. I downloaded the MonaiLabel extension for QuPath using the instructions provided.
However, I am getting a 401 error when I attempt to get the annotations. I suspect that is because I did not authenticate to the server. Is there a way to specify the authentication token to connect my local QuPath instance to the remote MonaiLabel server?
Thanks,
Mena
Here are the QuPath logs for your reference:
INFO: MONAI Label Annotation - URL => https://<>/mk-monai/port/8000/info/ INFO: {"error":"unauthorised access"} ERROR: MONAILabel: (GET https://<>/mk-monai/port/8000/info/) 401 ERROR: MONAILabel java.io.IOException: (GET https://<>/mk-monai/port/8000/info/) 401 at qupath.lib.extension.monailabel.RequestUtils.request(RequestUtils.java:59) at qupath.lib.extension.monailabel.MonaiLabelClient.info(MonaiLabelClient.java:131) at qupath.lib.extension.monailabel.commands.RunInference.run(RunInference.java:78) at qupath.lib.gui.ActionTools.lambda$createAction$1(ActionTools.java:724) at org.controlsfx.control.action.Action.handle(Action.java:423) at org.controlsfx.control.action.Action.handle(Action.java:64) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49) at javafx.event.Event.fireEvent(Event.java:198) at javafx.scene.control.MenuItem.fire(MenuItem.java:459) at com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.doSelect(ContextMenuContent.java:1385) at com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.lambda$createChildren$12(ContextMenuContent.java:1338) at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:247) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) at javafx.event.Event.fireEvent(Event.java:198) at javafx.scene.Scene$MouseHandler.process(Scene.java:3881) at javafx.scene.Scene.processMouseEvent(Scene.java:1874) at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2607) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:411) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:301) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:450) at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:424) at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:449) at com.sun.glass.ui.View.handleMouseEvent(View.java:551) at com.sun.glass.ui.View.notifyMouse(View.java:937) at com.sun.glass.ui.mac.MacView.notifyMouse(MacView.java:127)
Beta Was this translation helpful? Give feedback.
All reactions