nicehash / excavator

NiceHash's proprietary low-level CUDA miner
https://www.nicehash.com
53 stars 19 forks source link

API HTTP answer error? #294

Closed EvgeniyKorepov closed 3 years ago

EvgeniyKorepov commented 3 years ago

I get WINHTTP error 12152 when I try to access the API via HTTP WinAPI - ERROR_WINHTTP_INVALID_SERVER_RESPONSE 12152 The server response cannot be parsed.

I suspect that the error appears due to an incorrect header given by the excavator:

image

HTTP/1.0 200 OK
Content-Length: 21
Content-Type: application/json
Pragma: no-cache
Cache-Control: no-cache
Expires: 0
Excavator-Version: 1.6.2b
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, DELETE, PUT, PATCH
x-request-id,x-user-agent: 

{"id":1,"error":null}
nicehashdev commented 3 years ago

You are right. Thanks. Will be fixed in next version.

nicehashdev commented 3 years ago

Fixed.