Copied to clipboard

Flag this post as spam?

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


  • Rob Stevenson-Leggett 38 posts 110 karma points
    Oct 28, 2014 @ 19:38
    Rob Stevenson-Leggett
    0

    Plugin Controller seems to return empty response and action method never gets called

    I've been following this tutorial on how to build a custom section in the back office: http://www.nibble.be/?p=440

    I have got to the point where I am trying to load data from my custom Api Controller using the GetById method. However I am getting an empty response back. I am going direct to the URL e.g.

        http://local-umbraco.mysite.com/umbraco/backoffice/ClientAdministrationSection/ClientApi/GetById/1

    Sticking some breakpoints in show the constructor on my ClientApiController is called but the GetById method never gets executed.

    The routing seems to be working because if I change GetById to something else in the URL I see an error.

    Does anyone have any idea what could be going wrong?

    You can see my controller code here: https://gist.github.com/rsleggett/3d8d6e168f27bb548a15

  • Rob Stevenson-Leggett 38 posts 110 karma points
    Oct 28, 2014 @ 20:00
    Rob Stevenson-Leggett
    0

    Ah it looks like I've got the same problem as described in this issue: http://issues.umbraco.org/issue/U4-4149

    I'm calling it directly through the URL as a test because Angular seems to be calling the wrong URL. I will investigate the wrong URL thing and see if that fixes it. It seems like the JavaScript has been cached somewhere...

  • Rob Stevenson-Leggett 38 posts 110 karma points
    Oct 28, 2014 @ 20:10
    Rob Stevenson-Leggett
    100

    Deleting the TEMP directory has updated the plugin. Is there a way to disable the plugin cache temporarily?

    I've added the following post build event to delete the cache:

    del "$(ProjectDir)App_Data\TEMP\*" /q /s /f
    
Please Sign in or register to post replies

Write your reply to:

Draft