Open mgoodridge opened 7 years ago
Hi, I'm getting a 404 when using the get_usage method. Auth seems to be working fine and getting the CSRF token. Trace is below. Any ideas?
[17-04-18 01:01:52:258 BST] {headers={Cookie=ecos.dt=1492473711894;homepage_beta=false;SessionPersistence=CLICKSTREAMCLOUD:=visitorId=anonymous|PROFILEDATA:=avatar=/etc/designs/default/images/collab/avatar.png,isLoggedIn=true,isLoggedIn_xss=true,authorizableId=anonymous,authorizableId_xss=anonymous,formattedName=,formattedName_xss=|TAGCLOUD:=|SURFERINFO:=IP=127.0.0.1,keywords=,browser=WebKit,OS=Mac OS X,resolution=320x568|;stack=ukbcq; path=/; domain=10.224.19.44; expires=Thu, 18-May-2017 00:01:47 GMT;UAA-SSID=5ff1654a-62da-45bd-b305-5b304b131146; path=/; secure; HttpOnly;BG_COOKIE_ID=TZUHtb64638696340529487174448514; path=/; secure;JSESSIONID=cVCpY1XHJxjDWhYpVcVYNBylxQ3MLnFKplDX5YdQMff4j9Tv8PzM!-982658357; path=/; HttpOnly;BG_COOKIE_ID=VlPsjq66166295403280820334314788; path=/; secure, Accept=/, Connection=keep-alive, User-Agent=British Gas/2.1.70 (iPod touch; iOS 8.1.2; Scale/2.00), X-CSRF-Token=2cc544639668642f786fcbe58a7b7e6c, Accept-Encoding=gzip, deflate, Accept-Language=en-GB;q=1, en;q=0.9, ja;q=0.8, el;q=0.7, Proxy-Connection=keep-alive}, method=get, payload=, followRedirects=true, validateHttpsCertificates=true, useIntranet=false, contentType=application/x-www-form-urlencoded, url=https://www.britishgas.co.uk/myenergy_prod/api/usage/day/2017-04-16} [17-04-18 01:01:52:259 BST] ({'X-Frame-Options':"SAMEORIGIN", 'Transfer-Encoding':"chunked", 'keep-alive':"timeout=2, max=80", Server:"nginx/1.4.6 (Ubuntu)", 'Content-Encoding':"gzip", Connection:"Keep-Alive", Vary:"Accept-Encoding,User-Agent", Date:"Tue, 18 Apr 2017 00:01:52 GMT", 'Content-Type':"text/html; charset=UTF-8", 'X-Powered-By':"Express"}) [17-04-18 01:01:52:260 BST] Cannot GET /api/usage/day/2017-04-16
Hi
How do you use this? I am fairly new and would like some guidance please.
Thanks.
Hi, I'm getting a 404 when using the get_usage method. Auth seems to be working fine and getting the CSRF token. Trace is below. Any ideas?
[17-04-18 01:01:52:258 BST] {headers={Cookie=ecos.dt=1492473711894;homepage_beta=false;SessionPersistence=CLICKSTREAMCLOUD:=visitorId=anonymous|PROFILEDATA:=avatar=/etc/designs/default/images/collab/avatar.png,isLoggedIn=true,isLoggedIn_xss=true,authorizableId=anonymous,authorizableId_xss=anonymous,formattedName=,formattedName_xss=|TAGCLOUD:=|SURFERINFO:=IP=127.0.0.1,keywords=,browser=WebKit,OS=Mac OS X,resolution=320x568|;stack=ukbcq; path=/; domain=10.224.19.44; expires=Thu, 18-May-2017 00:01:47 GMT;UAA-SSID=5ff1654a-62da-45bd-b305-5b304b131146; path=/; secure; HttpOnly;BG_COOKIE_ID=TZUHtb64638696340529487174448514; path=/; secure;JSESSIONID=cVCpY1XHJxjDWhYpVcVYNBylxQ3MLnFKplDX5YdQMff4j9Tv8PzM!-982658357; path=/; HttpOnly;BG_COOKIE_ID=VlPsjq66166295403280820334314788; path=/; secure, Accept=/, Connection=keep-alive, User-Agent=British Gas/2.1.70 (iPod touch; iOS 8.1.2; Scale/2.00), X-CSRF-Token=2cc544639668642f786fcbe58a7b7e6c, Accept-Encoding=gzip, deflate, Accept-Language=en-GB;q=1, en;q=0.9, ja;q=0.8, el;q=0.7, Proxy-Connection=keep-alive}, method=get, payload=, followRedirects=true, validateHttpsCertificates=true, useIntranet=false, contentType=application/x-www-form-urlencoded, url=https://www.britishgas.co.uk/myenergy_prod/api/usage/day/2017-04-16} [17-04-18 01:01:52:259 BST] ({'X-Frame-Options':"SAMEORIGIN", 'Transfer-Encoding':"chunked", 'keep-alive':"timeout=2, max=80", Server:"nginx/1.4.6 (Ubuntu)", 'Content-Encoding':"gzip", Connection:"Keep-Alive", Vary:"Accept-Encoding,User-Agent", Date:"Tue, 18 Apr 2017 00:01:52 GMT", 'Content-Type':"text/html; charset=UTF-8", 'X-Powered-By':"Express"}) [17-04-18 01:01:52:260 BST] Cannot GET /api/usage/day/2017-04-16