# Reporting error using watcher

**URL:** <https://discuss.elastic.co/t/reporting-error-using-watcher/90985>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [June 27, 2017, 2:48pm UTC](https://discuss.elastic.co/t/reporting-error-using-watcher/90985 "2017-06-27T14:48:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [June 27, 2017, 2:48pm UTC](https://discuss.elastic.co/t/reporting-error-using-watcher/90985/1 "2017-06-27T14:48:28Z")

</div>

Hi All,

Am trying to execute a reporting everyday using watch but am unable to do it

PUT \_xpack/watcher/watch/report1  
{  
"trigger" : {  
"schedule": {  
"interval": "1d"  
}  
},  
"actions" : {  
"email\_admin" : {  
"email": {  
"to": "'xxxx'",  
"subject": "Report",  
"attachments" : {  
"cis.pdf" : {  
"reporting" : {  
"url": "[http://xxx](http://xxx))",  
"retries":20,  
"interval":"2m",  
"auth":{  
"basic":{  
"username":"xxxx",  
"password":"xxxx"  
}  
}  
}  
}  
}  
}  
}  
}  
}

when am executing it am getting this message as a reason

```
 "actions": [
    {
      "id": "email_admin",
      "type": "email",
      "status": "failure",
      "reason": "Watch[report1] reporting[cis.pdf] Error when polling pdf from host[x.x.x.x], port[5601], method[POST], path[/api/reporting/generate/visualization/eb9c4d90-47c8-11e7-99d5-bf053cd1fae7], status[200]"
    }
  ]
},

```

and under generated reports its says status :failed  
HeadlessError: Request() error evaluating createPage() call: Error: connect ECONNREFUSED x.x.x.x:48093

i have mentioned all the real values in xxxx.

what has to be done to fix this,please do let me know  
Thanks,  
Raj

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 25, 2017, 2:48pm UTC](https://discuss.elastic.co/t/reporting-error-using-watcher/90985/2 "2017-07-25T14:48:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
