Fetch API error test

by spydmobile

JavaScript

let testURL = "https://www.enr.gov.nt.ca/geoserver/nwtfire/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=nwtfire:firesit_publicPoint&maxFeatures=5000&outputFormat=text/javascript"
let normalURL = 'https://jsonplaceholder.typicode.com/postses'

fetch(testURL)
	.then(function (response) {
		return response.json();
	})
	.then(function (data) {
		console.log('success', data);
	})
	.catch(function (error) {
		console.log('error', JSON.stringify(error,null,2));
	});