Hi There,
Im stuck at a step where Im sending the HTTP request to URI : https://xxxx.xxxxx.com/xxxx/admin/api/metrics/domains?date=today and I get below response instead of the actual values related to the above uri.
| <!doctype html><html lang="en"><head><meta http-equiv="X-UA-Compatible" content="IE=edge;"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="shortcut icon" type="image/png" href="/Amelia/admin/static/resources/icons/favicon32.ico"><title>Amelia Admin</title><link href="/Amelia/admin/css/styles.caa2b127.css?792fcf775446721b4cac" rel="stylesheet"><link href="/Amelia/admin/css/app.bbb38b68.css?792fcf775446721b4cac" rel="stylesheet"><link href="/Amelia/admin/css/vendors.5eb84932.css?792fcf775446721b4cac" rel="stylesheet"></head><body id="adminApp"><script type="text/javascript" src="/Amelia/admin/js/styles.caa2b127.js?792fcf775446721b4cac"></script><script type="text/javascript" src="/Amelia/admin/js/app.bbb38b68.js?792fcf775446721b4cac"></script><script type="text/javascript" src="/Amelia/admin/js/vendors.5eb84932.js?792fcf775446721b4cac"></script></body></html> |
Screenshots of the HTTP request and response as below.
Headers while sending the HTTP request :
Content-Type : application/json
Accept-Encoding : gzip, deflate
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.43


When the same uri is run on the browser I get the correct values in a array as below.

[{"name":"it_en", "start":[2023,6,17,0,0], "timeZone":"UTC", "end":[2023,6,18,0,0], "total":317, "escalated":45, "abandoned":75, "ameliaHandled":204, "ameliaAbandoned":68, "escalateAbandoned":2, "agentHandled":38, "agentAbandoned":5, "slaViolations":5, "maxConcurrent":14, "avgAnswerSpeed":"00:00:25", "maxAnswerSpeed":"00:02:59", "avgHandleTime":"00:11:26", "maxHandleTime":"00:30:43", "summaryType":"DOMAIN"}] |