ArcadiaPower / arc-quickstart

A sample app and accompanying walkthrough for the Arc APIs
7 stars 5 forks source link

Pepco: incorrect creds come back as ERROR from scraper #14

Closed jakedouglas closed 3 years ago

jakedouglas commented 3 years ago

e.g.

        "errors": [
            {
                "type": "BaseError",
                "code": "[FILTERED]",
                "title": "Error: Pepco - Pepco - BaseError in function parakeet-staging-exelon-Pepco-EDy65y9CTDyr",
                "detail": "{'status': '400', 'message': 'Unable to validate the information provided.'}",
                "traceback": "Traceback (most recent call last):\n  File \"/var/task/scraper_lib/error_handler.py\", line 72, in wrapper\n    result = f(scrape, context, **kwargs)\n  File \"/var/task/utilities/exelon/src/handler.py\", line 15, in handler\n    api = API(event)\n  File \"/var/task/utilities/exelon/src/models/api.py\", line 68, in __init__\n    self.initialize(event)\n  File \"/var/task/utilities/exelon/src/models/api.py\", line 83, in initialize\n    self.login()\n  File \"/var/task/utilities/exelon/src/models/api.py\", line 199, in login\n    response = self.authentication()\n  File \"/var/task/utilities/exelon/src/models/api.py\", line 124, in new_authentication\n    response = self.self_asserted_calls(response)\n  File \"/var/task/utilities/exelon/src/models/api.py\", line 175, in self_asserted_calls\n    raise errors.BaseError(str(response_json))\nscraper_lib.errors.BaseError: {'status': '400', 'message': 'Unable to validate the information provided.'}\n",
                "screenshot_url": null,
                "html_url": null
            }
        ],
jakedouglas commented 3 years ago

reported to UD https://arcadiapower.slack.com/archives/C014EMV2NUB/p1632943748131800

johnnyman727 commented 3 years ago

Closing on this repo since it's been ingested in UD's triage system: https://arcadiapower.atlassian.net/browse/UD-2091