Open codepattern opened 4 years ago
Again - thanks for this plugin.
I wanted to know if you had any examples on how to perform some error handling using the Ajax template. Whenever I hit a bad entry, the api sometimes returns a 404.
`` Sorry about the incomplete subject. Should be Error Handling the response object
e.g. { "data": null, "status": 404, "config": { "method": "GET", "transformRequest": [ null ], "transformResponse": [ null ], "jsonpCallbackParam": "callback", "responseType": "json", "url": "api/datasources/proxy/90/clients/win2012r2-674fb.dev.workspace.cloud.td.com", "params": { }, "headers": { "Accept": "application/json", "X-Grafana-Org-Id": 4 }, "cache": false, "withCredentials": false, "retry": 0 }, "statusText": "Not Found", "xhrStatus": "complete" }
{ "data": null, "status": 404, "config": { "method": "GET", "transformRequest": [ null ], "transformResponse": [ null ], "jsonpCallbackParam": "callback", "responseType": "json", "url": "api/datasources/proxy/90/clients/win2012r2-674fb.dev.workspace.cloud.td.com", "params": { }, "headers": { "Accept": "application/json", "X-Grafana-Org-Id": 4 }, "cache": false, "withCredentials": false, "retry": 0 }, "statusText": "Not Found", "xhrStatus": "complete" }
Again - thanks for this plugin.
I wanted to know if you had any examples on how to perform some error handling using the Ajax template. Whenever I hit a bad entry, the api sometimes returns a 404.
`` Sorry about the incomplete subject. Should be Error Handling the response object
e.g.
{ "data": null, "status": 404, "config": { "method": "GET", "transformRequest": [ null ], "transformResponse": [ null ], "jsonpCallbackParam": "callback", "responseType": "json", "url": "api/datasources/proxy/90/clients/win2012r2-674fb.dev.workspace.cloud.td.com", "params": { }, "headers": { "Accept": "application/json", "X-Grafana-Org-Id": 4 }, "cache": false, "withCredentials": false, "retry": 0 }, "statusText": "Not Found", "xhrStatus": "complete" }