camicroscope / caMicroscope

Digital pathology image viewer with support for human/machine generated annotations and markups.
BSD 3-Clause "New" or "Revised" License
231 stars 286 forks source link

Automatic slide loading via API (SlideLoader) does not work #989

Closed nedash closed 1 week ago

nedash commented 1 week ago

Discussed in https://github.com/orgs/camicroscope/discussions/987

Originally posted by **nedash** June 28, 2024 We are trying to upload slides via API, but so far it hasn't worked. We launched the distribution via `docker-compose -f caMicroscope.yml up -d`. The `docker ps` command shows the following running containers: ``` 376550a58ffa distro-back "docker-entrypoint.s..." 2 weeks ago Up 1 second 0.0.0.0:4010->4010/tcp ca-back 62745e7e9c59 camicroscope/iipimage:version-3.11.0 "/bin/sh -c 'apachec…" 2 weeks ago Up 2 seconds ca-iip 6cefd3b9d01f distro-loader "/bin/sh -c 'gunicor..." 2 weeks ago Up 2 seconds 4000-4001/tcp ca-load 601fb4a33507 mongo:4.2-bionic "docker-entrypoint.s..." 2 weeks ago Up 2 seconds 27017/tcp ca-mongo ``` Next, based on the SlideLoader documentation (https://github.com/camicroscope/SlideLoader/tree/v3.12.0) we try to send a request to http://localhost:4000/upload/start, using a simple code, but we get an error. Here is the code: ``` import requests url = 'http://localhost:4000/upload/start' x = requests.post(url) print(x) ``` Error: `Failed to establish a new connection: [Errno 61] Connection refused'` What are we doing wrong? Thanks