Skip to content

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

@vakapral

Description

@vakapral

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions