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

sonm-node can't serve http calculator's requests since v0.4.26 #1905

Open
vakapral opened this issue Oct 15, 2019 · 0 comments
Open

sonm-node can't serve http calculator's requests since v0.4.26 #1905

vakapral opened this issue Oct 15, 2019 · 0 comments

Comments

@vakapral
Copy link

vakapral commented Oct 15, 2019

Request

# curl -v -k -s -XPOST -H "Content-Type: application/json" http://127.0.0.1:15031/OrderPredictorServer/PredictSupplier/ -d@node-simpe-quest.txt -L

Bad response v0.4.(26-29):

*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 15031 (#0)
> POST /OrderPredictorServer/PredictSupplier/ HTTP/1.1
> Host: 127.0.0.1:15031
> User-Agent: curl/7.47.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 1262
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
* Empty reply from server
* Connection #0 to host 127.0.0.1 left intact

Expected response:

* Connected to 127.0.0.1 (127.0.0.1) port 15031 (#0)
> POST /OrderPredictorServer/PredictSupplier/ HTTP/1.1
> Host: 127.0.0.1:15031
> User-Agent: curl/7.47.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 1262
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< Content-Type: application/json
< Date: Mon, 14 Oct 2019 19:39:46 GMT
< Content-Length: 82
<
* Connection #0 to host 127.0.0.1 left intact
{"price":{"perSecond":"5149195029940"},"orderIDs":["2842555","2765175","2820734"]}

node-simpe-quest.txt may contain any request from https://sonm.com/calculator/

@vakapral vakapral changed the title sonm-node can't serve http calculator's request since v0.4.26 sonm-node can't serve http calculator's requests since v0.4.26 Oct 15, 2019
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

No branches or pull requests

1 participant