The WK api doesn't work via http anymore and returns a 302 code redirecting to its https version. A 302 response is a vaild answer and curl doesn't throw an error but instead returns an empty string instead which libjson can't parse.
Simply using https instead fixes this error.
The WK api doesn't work via http anymore and returns a 302 code redirecting to its https version. A 302 response is a vaild answer and curl doesn't throw an error but instead returns an empty string instead which libjson can't parse. Simply using https instead fixes this error.