Skip to content
This repository was archived by the owner on Apr 17, 2021. It is now read-only.
This repository was archived by the owner on Apr 17, 2021. It is now read-only.

Does this code still work? #1

Open

Description

@gskluzacek

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>

Activity

  1. p-doyle commented on Jun 3, 2019

    @p-doyle
    Owner

    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...

  2. sully81 commented on Aug 5, 2019

    @sully81

    Any luck getting this to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions