-
Notifications
You must be signed in to change notification settings - Fork 83
Error with adding email contact #15
Comments
I got the same problem. And also a similar problem with the monitor resource type ping:
|
My bad, the ping resource was my not specifying the right type for the monitor (http instead of ping). |
The account email address is added by default as a contact. So my assumption is the API disallows to add duplicate. I don't think this is an issue with this plugin. edit: what would be helpful is a data source for alert contacts so the default alert contact data source can be obtained (using the email adres in the account data source). |
Good shout @aequitas. I'll see if I get a chance to implement that but feel free to contribute |
I have the same problem when I want to use the default account email as an alert contact.
However the id of the default account email seems like 0xxxx, there is a need to change the type of id to string in the alert contact resource. |
I got some work on this already not finished yet though. I'll try to wrap it up and get a pr out beginning of next week. |
I think adding a data source for alert contacts would be a nice and clean approach to solving this, but I need to verify that it’s doable using the api I’ve not seen the 0xxxx ids but I don’t see a reason why ids shouldn’t be changed to strings (Ints are probably bad anyway) so feel free to send a PR |
Fixed in #21 |
I try to add my email as a contact using the provider (It works with the UI). I've got this error :
Any idea ?
The text was updated successfully, but these errors were encountered: