JSON endpoint error

This topic contains 2 replies, has 2 voices, and was last updated by  Guust 6 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #429237

    Alex Howes
    Expired Member
    Post count: 175

    Hello,

    One of my JSON endpoints for my CPT “farms” has started showing an error (and not showing what it should). The error is:

    {“code”:”rest_invalid_param”,”message”:”Invalid parameter(s): sdist”,”data”:{“status”:400,”params”:{“sdist”:”sdist is not one of , 5, 10, 15, 20, 25, 30.”}}}

    Or see here (http://www.barn-door.co.uk/wp-json/geodir/v1/farms). My other endpoints (“cvs” and “jobs”) are displaying fine. I’ve deactivated all my snippets but this didn’t solve the problem.

    Thanks 🙂

    Alex

    #429239

    Alex Howes
    Expired Member
    Post count: 175

    I’ve now solved this (sorry!)

    The default search range was being set to 40, and I had set the maximum search range to 30 (in GD -> farm settings -> advance search). Perhaps there should be something to prevent this happening?

    Alex

    #429242

    Guust
    Moderator
    Post count: 29970

    Thanks for letting us know. I alerted the developers to have a look at your post too, in case there is anything that needs fixing. Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket