ImageJ-Server : HTTP 405 Method Not Allowed


Hello everybody,

I am trying to use imagej-server with @oburri. After some initial struggling we managed to make it work, and even we were able to get the result of 3+1, by using the command shown in Readme:

curl -XPOST -H "Content-Type: application/json" -d '{"a":1,"b":3}' localhost:8080/modules/'command:net.imagej.ops.math.PrimitiveMath$IntegerAdd'?process=false

However, when we tried to send an image using this other example command (and a valid file path):

curl -F "file=@src/test/resources/imgs/about4.tif" localhost:8080/objects/

The server returns this error {"code":405,"message":"HTTP 405 Method Not Allowed"}.

This happened on Windows, on Ubuntu, with the server launched within an up-to-date FIJI or within the intellij IDE, and with two different tif files.

Within the IDE, we could set the server to log in ‘DEBUG’ mode by modifying the yml file. Here’s the log file when the problem happens:

Any help appreciated,

ping @PetrBainar, @imagejan, @ctrueden

1 Like