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 12:57AM UTC

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

Here's a paste of some bad example code ( with API key removed ):
https://pastebin.com/cJ0FXFJB

And here is the response I'm getting:

500
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'})
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.

Thanks!

Up 0 rated Down
Maxim Gushcho May 16, 2017 12:30PM UTC OpenWeatherMap Agent

Hello,

The syntax is incorrect.
Please keep it just like it says in the docs:
http://openweathermap.org/triggers#create_trigger

You can check the valid JSON here:
https://jsonformatter.curiousconcept.com/

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
9eda11838f597e7a95b6a1c991dcae0a@openweathermap.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete