Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Trigger Validation Failed

Nick Bellamy May 15, 2017 03:57AM MSK

Very new to using OWM, and I'm trying to create a test trigger before trying to construct my own. Using the example from I get status code 500, "Trigger validation failed".

Here's a paste of some bad example code ( with API key removed ):

And here is the response I'm getting:

CaseInsensitiveDict({'access-control-allow-headers': 'Origin, X-Requested-With, Content-Type, Accept', 'x-powered-by': 'Express', 'transfer-encoding': 'chunked', 'server': 'openresty', 'connection': 'keep-alive', 'access-control-allow-credentials': 'true', 'date': 'Mon, 15 May 2017 00:51:08 GMT', 'access-control-allow-origin': '*', 'access-control-allow-methods': 'GET, POST, PUT, DELETE', 'content-type': 'text/plain; charset=utf-8'})
u'Trigger validation failed'
<bound method Response.json of <Response [500]>>

Is there something I'm missing in my POST request? Am I using the json or requests library incorrectly? Help would be appreciated.


Up 0 rated Down
Maxim Gushcho May 16, 2017 03:30PM MSK OpenWeatherMap Agent


The syntax is incorrect.
Please keep it just like it says in the docs:

You can check the valid JSON here:

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found