Copied to clipboard

Flag this post as spam?

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


  • Claushingebjerg 919 posts 2521 karma points
    Nov 11, 2021 @ 14:37
    Claushingebjerg
    0

    The requested resource does not support http method 'GET'

    I'm using nupickers on a 7.4 site. Suddenly two "json checkbox pickers" have disaeppeared in the backoffice. Console says 500 error, and the url shows the error

    )]}', {"Message":"The requested resource does not support http method 'GET'."}
    

    Any ideas what to do? Webhost upgraded webhotels, and it has happened some time after that...

    the json from one of the pickers looks like this

    [ { "afdeling": "Administration" }, { "afdeling": "Undervisere" }, { "afdeling": "K√łkken" }, { "afdeling": "Pedel" }, { "afdeling": "Ledelse" } ]
    
  • Marc Goodson 1718 posts 11411 karma points MVP 7x c-trib
    Nov 14, 2021 @ 11:48
    Marc Goodson
    0

    Hi Claushingebjerg

    When you say Webhost upgraded webhotels, what does that mean?

    Generally, I've found the first thing to check when a host upgrades an environment and API requests stop working is TLS support!

    There is a brief explanation here:

    https://codeshare.co.uk/blog/how-to-force-a-net-website-to-use-tls-12/

    eg because of the 'upgrade' the webservice is only now available on TLS 1.2, but the error message is not helpful! - telling your site to run under TLS1.2 means it can make the GET request once more.

    ... of course may be wrong in this instance :-P but sounds like something has changed, that is preventing the request to be made, eg you normally see that error when people have accidentally imported the System.Web.Mvc namespace instead of System.Web.Http for decorating the Get Request... (but that's not the case here, as you have had it working before)

    regards

    marc

Please Sign in or register to post replies

Write your reply to:

Draft