30.08.2019, 06:16
This is probably due to older FW, as a work-around you can use HTTP request instead:
Code:
require('json')
http = require('socket.http')
escape = require('socket.url').escape
key = 'my_api_key'
location = 'my location name'
url = 'http://api.apixu.com/v1/forecast.json?key=%s&q=%s&days=2'
url = string.format(url, key, escape(location))
res = http.request(url)
data = json.pdecode(res)
...