Empty response to test curl
j1m-renwick opened this issue · comments
When I start the docker image and run a GET curl request, I get the expected "Hello BASNet!" response, but when I try the POST test request mentioned in the readme, I only get an empty response:
$ curl -F "firstname.lastname@example.org" http://localhost:8080 -o result.png % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3249 0 0 100 3249 0 361 0:00:09 0:00:08 0:00:01 0 curl: (52) Empty reply from server
Curl seems to upload and send the image, but there is no response - if I try sending a bad request like ""data=" I get a 400 error, so it looks like the endpoint is correct and the code is being executed...just not when I send an image to be processed.
The only thing I can think of at this point is that the processing is so extreme. that the Macbook Pro I'm running it on can't handle it before the flask request timeout is reached, but this is just a wild guess. Anything you can suggest/advise would be helpful. Thanks :)
Could you try increasing the RAM of Docker as mentioned here? cyrildiagne/ar-cutpaste#26 (comment)
i have the same with mac os , i change the settings of my docker to 4 core and more ram and works fine