Getting that error in console when trying to get data from a API. Anybody have this issue before?
var url = \"https://api.website.com/get/?type=events&la
This error occurs when something goes wrong in request, for ex. if you set url as undefined, invalid method, or invalid content type, anything wrong with request object will throw this error.