This is the error message:
{
“status”: “Param ‘Event.metadata’ with value ‘\”metadata\”:{\u201cdate_submitted\u201d:\”1 Octover 2013\”}’ is not of allowed type ‘array’. “,
“status_code”: 400
}
This is a sample of the json we are calling from:
{
“status”: “OK”,
“status_code”: 200,
“body”: {
“Events”: [
{
“id”: 120,
“code”: “10-52563b3f03050”,
“name”: “Meet the Author – Jenny and Neil Delmage”,
“description”: “<p>Two of Australia\u2019s best garden designers, Jenny and Neil Delmage have released their third book with twelve new gardens from their highly successful business of creating waterwise, biodiverse \u2014 and gorgeous \u2014 gardens that fit the natural environment.<\/p>\n<p>This stunning book features new, hands-on information about each garden, including plant lists, soil types, garden orientations, design plans, and client briefs.<\/p>\n<p>For the first time, the range of gardens in this book includes not only urban, suburban, coastal and country, but commercial and historic properties too.<\/p>\n<p>The Delmages answer the question: in Australia\u2019s dry climate, how do you create and maintain a beautiful yet waterwise garden?<\/p>\n<p>Copies of Neil and Jenny\u2019s books will be available for purchase and signing on the day.<br \/>\nCost: $3.00 \u2013 payable on the day, includes refreshments<\/p>\n<p style=\”text-align: left;\” align=\”center\”>For further information and for bookings please call 9400 4751<\/p>\n”,
“status”: “active”,
“limit”: 80,
“group_registrations_allowed”: true,
“group_registrations_max”: 4,
“active”: true,
“member_only”: false,
“virtual_url”: “”,
“call_in_number”: “”,
“phone”: “9400 9999”,
“metadata”: {
“default_payment_status”: “”,
“venue_id”: 12,
“additional_attendee_reg_info”: “1”,
“add_attendee_question_groups”: {
“17”: “17”
},
“date_submitted”: “10 October 2013”,
“event_thumbnail_url”: “http:\/\/events.joondalup.wa.gov.au\/wp-content\/uploads\/2013\/10\/Garden-Delmage-198-128×150.jpg”,
“account_mnemonic”: “none”,
“payatdoor”: “3”,
“_empty_”: “”
}
}
}
Which works if public access is enabled. That would pull the events submitted with a date less than today. However, whilst this works on my test sites, for some reason it is not valid on yours.
Can you tell me which version of the JSON API do you currently have installed please?
You can find this within Dashboad -> Plugins -> ‘Event Espresso API Plugin’
The latest version is 2.1.1.P, if you are currently on a lower version version could you update and retest using the example above please.
Also is the site part of a Multi-site network?
Viewing 1 reply thread
The support post ‘GET metadata URL query error’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.