Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fn_pagerduty pdpyras.PDClientError: Received 401 Unauthorized response from the API #83

Open
irom77 opened this issue Jan 7, 2022 · 0 comments

Comments

@irom77
Copy link

irom77 commented Jan 7, 2022

Description

Getting error below even thout API key is correct (works when pasted into my code snippet)

Traceback (most recent call last): File "/home/resadmin/.local/lib/python3.6/site-packages/fn_pagerduty/components/pd_create_incident.py", line 41, in _pagerduty_create_incident_function resp = create_incident(createDict) File "/home/resadmin/.local/lib/python3.6/site-packages/fn_pagerduty/components/pd_common.py", line 47, in create_incident resp = session.post(INCIDENT_FRAGMENT, payload) File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 590, in post return self.request('POST', url, data=data, json=json, **kwargs) File "/home/resadmin/.local/lib/python3.6/site-packages/pdpyras.py", line 559, in request response=response) pdpyras.PDClientError: Received 401 Unauthorized response from the API. The access key (*xxxx) might not be valid.

Describe How to Reproduce

Run Menu Item Trigger PagerDuty Incident on any existing incident

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant