Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete returns 405.0 - Method Not Allowed #5

Open
TQ-Benji opened this issue Nov 12, 2021 · 3 comments
Open

Delete returns 405.0 - Method Not Allowed #5

TQ-Benji opened this issue Nov 12, 2021 · 3 comments

Comments

@TQ-Benji
Copy link

When trying to delete a record from the backoffice i get 405 error in console

Umbraco 9.0.1
InboundLinkErrors 2.0.0

@patrickdemooij9
Copy link
Owner

Hi @EM-Benji,

I'll take a look at this and see if I can reproduce it. I'll keep you posted!

@patrickdemooij9
Copy link
Owner

Hi @EM-Benji,

I cannot reproduce the issue:
InboundLinkErrors

I am able to delete the row without any issues. There is also nowhere where my code is returning a NonAuthorized. Can you give me some more information about the situation? Like:

  • Browser?
  • Video?
  • Any other packages installed?
  • Custom middleware?
  • Does the response give any more information on why it is unauthorized?

@TQ-Benji
Copy link
Author

TQ-Benji commented Nov 14, 2021

Hey @patrickdemooij9

Browser: Edge 95.0.1020.44 (Official build) (64-bit)
IIS Server

This appears in the console as well
Possibly unhandled rejection: {"data":"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> \n<html xmlns=\"http://www.w3.org/1999/xhtml\"> \n<head> \n<title>IIS 10.0 Detailed Error - 405.0 - Method Not Allowed</title> \n<style type=\"text/css\"> \n<!-- \nbody{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;} \ncode{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} \n.config_source code{font-size:.8em;color:#000000;} \npre{margin:0;font-size:1.4em;word-wrap:break-word;} \nul,ol{margin:10px 0 10px 5px;} \nul.first,ol.first{margin-top:5px;} \nfieldset{padding:0 15px 10px 15px;word-break:break-all;} \n.summary-container fieldset{padding-bottom:5px;margin-top:4px;} \nlegend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} \nlegend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px; \nfont-weight:bold;font-size:1em;} \na:link,a:visited{color:#007EFF;font-weight:bold;} \na:hover{text-decoration:none;} \nh1{font-size:2.4em;margin:0;color:#FFF;} \nh2{font-size:1.7em;margin:0;color:#CC0000;} \nh3{font-size:1.4em;margin:10px 0 0 0;color:#CC0000;} \nh4{font-size:1.2em;margin:10px 0 5px 0; \n}#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:\"trebuchet MS\",Verdana,sans-serif; \n color:#FFF;background-color:#5C87B2; \n}#content{margin:0 0 0 2%;position:relative;} \n.summary-container,.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} \n.content-container p{margin:0 0 10px 0; \n}#details-left{width:35%;float:left;margin-right:2%; \n}#details-right{width:63%;float:left;overflow:hidden; \n}#server_version{width:96%;_height:1px;min-height:1px;margin:0 0 5px 0;padding:11px 2% 8px 2%;color:#FFFFFF; \n background-color:#5A7FA5;border-bottom:1px solid #C1CFDD;border-top:1px solid #4A6C8E;font-weight:normal; \n font-size:1em;color:#FFF;text-align:right; \n}#server_version p{margin:5px 0;} \ntable{margin:4px 0 4px 0;width:100%;border:none;} \ntd,th{vertical-align:top;padding:3px 0;text-align:left;font-weight:normal;border:none;} \nth{width:30%;text-align:right;padding-right:2%;font-weight:bold;} \nthead th{background-color:#ebebeb;width:25%; \n}#details-right th{width:20%;} \ntable tr.alt td,table tr.alt th{} \n.highlight-code{color:#CC0000;font-weight:bold;font-style:italic;} \n.clear{clear:both;} \n.preferred{padding:0 5px 2px 5px;font-weight:normal;background:#006633;color:#FFF;font-size:.8em;} \n--> \n</style> \n \n</head> \n<body> \n<div id=\"content\"> \n<div class=\"content-container\"> \n <h3>HTTP Error 405.0 - Method Not Allowed</h3> \n <h4>The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.</h4> \n</div> \n<div class=\"content-container\"> \n <fieldset><h4>Most likely causes:</h4> \n <ul> \t<li>The request sent to the Web server used an HTTP verb that is not allowed by the module configured to handle the request.</li> \t<li>A request was sent to the server that contained an invalid HTTP verb.</li> \t<li>The request is for static content and contains an HTTP verb other than GET or HEAD.</li> \t<li>A request was sent to a virtual directory using the HTTP verb POST and the default document is a static file that does not support HTTP verbs other than GET or HEAD.</li> </ul> \n </fieldset> \n</div> \n<div class=\"content-container\"> \n <fieldset><h4>Things you can try:</h4> \n <ul> \t<li>Verify the list of verbs enabled for the module handler this request was sent to, and ensure that this verb should be allowed for the Web site.</li> \t<li>Check the IIS log file to see which verb is not allowed for the request.</li> \t<li>Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click <a href=\"http://go.microsoft.com/fwlink/?LinkID=66439\">here</a>. </li> </ul> \n </fieldset> \n</div> \n \n<div class=\"content-container\"> \n <fieldset><h4>Detailed Error Information:</h4> \n <div id=\"details-left\"> \n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> \n <tr class=\"alt\"><th>Module</th><td>&nbsp;&nbsp;&nbsp;WebDAVModule</td></tr> \n <tr><th>Notification</th><td>&nbsp;&nbsp;&nbsp;MapRequestHandler</td></tr> \n <tr class=\"alt\"><th>Handler</th><td>&nbsp;&nbsp;&nbsp;aspNetCore</td></tr> \n <tr><th>Error Code</th><td>&nbsp;&nbsp;&nbsp;0x00000000</td></tr> \n \n </table> \n </div> \n <div id=\"details-right\"> \n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> \n <tr class=\"alt\"><th>Requested URL</th><td>&nbsp;&nbsp;&nbsp;https://test-v9.local:443/umbraco/backoffice/LinkErrors/LinkErrorsApi/Delete/?id=1</td></tr> \n <tr><th>Physical Path</th><td>&nbsp;&nbsp;&nbsp;C:\\Repos\\Test-Stite\\src\\TestV9.Umbraco\\umbraco\\backoffice\\LinkErrors\\LinkErrorsApi\\Delete\\</td></tr> \n <tr class=\"alt\"><th>Logon Method</th><td>&nbsp;&nbsp;&nbsp;Anonymous</td></tr> \n <tr><th>Logon User</th><td>&nbsp;&nbsp;&nbsp;Anonymous</td></tr> \n \n </table> \n <div class=\"clear\"></div> \n </div> \n </fieldset> \n</div> \n \n<div class=\"content-container\"> \n <fieldset><h4>More Information:</h4> \n This error means that the request sent to the Web server contained an HTTP verb that is not allowed by the configured module handler for the request. \n <p><a href=\"https://go.microsoft.com/fwlink/?LinkID=62293&amp;IIS70Error=405,0,0x00000000,19042\">View more information &raquo;</a></p> \n \n </fieldset> \n</div> \n</div> \n</body> \n</html> \n","status":405,"config":{"method":"DELETE","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"backoffice/LinkErrors/LinkErrorsApi/Delete/?id=1","headers":{"Accept":"application/json, text/plain, */*","X-Requested-With":"XMLHttpRequest","X-UMB-XSRF-TOKEN":"CfDJ8GjkBYhf1l1Pt4G3wAVY4tNkVjUsEghnQdP6TqHDdtrgALrSHZM5siDtSaiGPg0n2aK8K_gs-Wu2W41_fmewGD5745_tH3JZJqGKeL32UfI7oKjBYhq3SDvp6o-6WTXWE1oJ7u5Oi2DDcB19VA2oijtDcXpAlw3QAWNLvHcH9-Z_UFl-Nv44AqUxXF1IzmsQxg"}},"statusText":"","xhrStatus":"complete"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants