# pagerduty module not working

**URL:** <https://forum.ansible.com/t/pagerduty-module-not-working/15877>\
**Category:** Ansible Project\
**Created:** [August 6, 2014, 7:13pm UTC](https://forum.ansible.com/t/pagerduty-module-not-working/15877 "2014-08-06T19:13:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_G](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Post date:** [August 6, 2014, 7:13pm UTC](https://forum.ansible.com/t/pagerduty-module-not-working/15877/1 "2014-08-06T19:13:05Z")

</div>

Hi,

I’m trying to use the pagerduty module with no luck, when I run the bellow tasks with the right credentials I get a “failed to create the window: HTTP Error 400: Bad Request” :

TASK:  
“”"

- name: Create a 1 hour maintenance window in PagerDuty

pagerduty: name=mydomain [user=user@mydomain.com](mailto:user=user@mydomain.com) passwd=mypassword state=running service=MYSERVICE

“”"

RESULT:

“”"  
failed: [localhost] =\> {“failed”: true}  
msg: failed to create the window: HTTP Error 400: Bad Request

FATAL: all hosts have already failed – aborting

“”"

According to the pagerduty official documentation ([http://developer.pagerduty.com/documentation/rest/errors](http://developer.pagerduty.com/documentation/rest/errors)) , there is an issue with the arguments :

| 

400

 | 

Bad Request

 | 

Caller provided invalid arguments. Please review the response for error details. Retrying with the same arguments will _not_ work.

 |
|
| |

Can some one please advise ?
