You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 17, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 17, 2021. It is now read-only.
I downloaded the code and entered the needed info (user id, pwd, utilityAccountId), but line 41 in the loginToComedAndAuthSAML() function throws a IndexError: list index out of range exception when its trying to split the response text on "SAMLResponse:"
Do you think you might be working on this, or can help trouble shoot?
in this request's response text (and for the 2nd request too: https://cec.opower.com/ei/x/e/energy-use-details) it seems to indicate that there was an internal server error (500) see the below, which I'm guessing isn't good
Also, for the first request https://secure.comed.com/forms/login.fcc
the page redirects to
location.href = "/Pages/PageNotFoundError.aspx?requestUrl=" + encodeURI(location.pathname + location.search);
so it looks like a 404 response, not sure if it matters as you're just looking for the cookie.
<div>
<span>System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)
at Exelon.Web.Forms.WebParts.SAML2SSO.GetAssertion(String accountNumber, String userName, String address, Boolean isResidential) in D:\a\1\s\Exelon.Web.Forms\WebParts\SAML2SSO.cs:line 184
at Exelon.Web.Forms.WebParts.SAML2SSO.CreateChildControls() in D:\a\1\s\Exelon.Web.Forms\WebParts\SAML2SSO.cs:line 78
</span>
</div>
Unfortunately I am unable to support this project any more... I have moved and am no longer a Comed customer and it seems they disable your account entirely so I am unable to do any testing. Its possible that if you change https://secure.comed.com/forms/login.fcc to https://secure.comed.com/Pages/Adaptor.aspx that it might work, assuming they haven't changed anything else...
Activity
p-doyle commentedon Jun 3, 2019
Unfortunately I am unable to support this project any more... I have moved and am no longer a Comed customer and it seems they disable your account entirely so I am unable to do any testing. Its possible that if you change https://secure.comed.com/forms/login.fcc to https://secure.comed.com/Pages/Adaptor.aspx that it might work, assuming they haven't changed anything else...
sully81 commentedon Aug 5, 2019
Any luck getting this to work?