Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex Jacobs 1 post 71 karma points
    Jun 13, 2018 @ 10:50
    Alex Jacobs
    0

    Umbraco headless BadRequest on HeadlessService.GetChildren

    Hi everyone, I'm trying to set up the headless Umbraco on an asp.net project. Everything works fine but when I try to call HeadlessService.GetChildren() to setup dynamic navigation as mentioned in the docs, I get the following error message:

    InvalidOperationException: Request was not successful, status BadRequest, url https://WEBSITEADDRESS/umbraco/rest/v1/content/published/f1f0c803-7f8c-46ab-b399-1568f6412010/children?page=0&query=&, result {"Message":"The request is invalid."}

    I'm not sure who to fix this issue and would appreciate if anyone who has passed this stage helps me out.

    Thanks.

  • Jeroen Vantroyen 54 posts 394 karma points c-trib
    Nov 08, 2018 @ 16:02
    Jeroen Vantroyen
    0

    If you loose the trailing ampersand at the end of your querystring, the request becomes valid.

Please Sign in or register to post replies

Write your reply to:

Draft