mdopp / simple-sonoff-server

Emulates the original sonoff-cloud-servers within your local network.
BSD 2-Clause "Simplified" License
144 stars 47 forks source link

Device setup POST request hangs #7

Closed evnsio closed 6 years ago

evnsio commented 6 years ago

I have a quick question about the POST request to http://10.10.7.1/ap. Is it expected that this request times out without a response?

I get the following issue when using curl to post the json payload:

 TCP_NODELAY set
* Connected to 10.10.7.1 (10.10.7.1) port 80 (#0)
> POST /ap HTTP/1.1
> Host: 10.10.7.1
> User-Agent: curl/7.54.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 96
>
* upload completely sent off: 96 out of 96 bytes
* Recv failure: Operation timed out

Just wondering whether this is expected or not?

evnsio commented 6 years ago

My bad, was missing the trailing } from the json payload.