0
Answered

Blocking Rest PUT Call - 501 (Method Not Implemented)

InMotionFans 5 years ago in Blogs and Content Management Systems / Drupal 7 0
I am doing a REST services call and I keep getting a 501 (Method Not Implemented). Is it possible that my server is blocking this call? Please help me? the site I am working on is one of my reseller accounts. My website is whateslseit.com. Below is the error i am getting when I make the call from within the app. I can walk someone through this if that helps. HERE IS THE ERROR: PUT http://whatelseit.com/?q=drupalgap/user/5.json 501 (Method Not Implemented) jdrupal-7.x-1.0.min.js:31 PUT: http://whatelseit.com/?q=drupalgap/user/5.json - 501 - jdrupal-7.x-1.0.min.js:32 WhatElseIt.com @import url("http://whatelseit.com/modules/system/system.base.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/date/date_api/date.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/date/date_popup/themes/datepicker.1.7.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/date/date_repeat_field/date_repeat_field.css?nhvni8"); @import url("http://whatelseit.com/modules/field/theme/field.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/logintoboggan/logintoboggan.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/office_hours/office_hours.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/views/css/views.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/jquerymobile/jquerymobile.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/ctools/css/ctools.css?nhvni8"); @import url("http://whatelseit.com/sites/all/themes/mobile_jquery/styles/mobile_jquery.css?nhvni8"); @import url("http://whatelseit.com/sites/all/libraries/jquery.mobile-1.0.1/jquery.mobile.structure-1.0.1.min.css?nhvni8"); @import url("http://whatelseit.com/sites/all/libraries/jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.css?nhvni8"); (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-58150376-1', 'auto'); ga('send', 'pageview');

Welcome to WhatElseIt.com

No front page content has been created yet.

Search form

 
Powered by Drupal
(function ($) { $('[data-role=page]').live('pageshow', function (event, ui) { try { _gaq.push(['_setAccount', 'UA-40756456-1']); hash = location.hash; if (hash) { _gaq.push(['_trackPageview', hash.substr(1)]); } else { _gaq.push(['_trackPageview']); } } catch(err) { } }); }(jQuery)); jdrupal-7.x-1.0.min.js:32 Date: Thu, 08 Jan 2015 21:48:23 GMT Last-Modified: Thu, 08 Jan 2015 21:48:23 GMT Server: Apache X-Powered-By: PHP/5.4.36 ETag: "1420753703" Content-Language: en X-Generator: Drupal 7 (http://drupal.org) Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0 Connection: close Content-Type: text/html; charset=utf-8 Link: ; rel="canonical",; rel="shortlink" Expires: Sun, 19 Nov 1978 05:00:00 GMT jdrupal-7.x-1.0.min.js:32 WhatElseIt.com @import url("http://whatelseit.com/modules/system/system.base.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/date/date_api/date.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/date/date_popup/themes/datepicker.1.7.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/date/date_repeat_field/date_repeat_field.css?nhvni8"); @import url("http://whatelseit.com/modules/field/theme/field.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/logintoboggan/logintoboggan.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/office_hours/office_hours.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/views/css/views.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/jquerymobile/jquerymobile.css?nhvni8"); @import url("http://whatelseit.com/sites/all/modules/ctools/css/ctools.css?nhvni8"); @import url("http://whatelseit.com/sites/all/themes/mobile_jquery/styles/mobile_jquery.css?nhvni8"); @import url("http://whatelseit.com/sites/all/libraries/jquery.mobile-1.0.1/jquery.mobile.structure-1.0.1.min.css?nhvni8"); @import url("http://whatelseit.com/sites/all/libraries/jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.css?nhvni8"); (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-58150376-1', 'auto'); ga('send', 'pageview');

Welcome to WhatElseIt.com

No front page content has been created yet.

Search form

 
Powered by Drupal
(function ($) { $('[data-role=page]').live('pageshow', function (event, ui) { try { _gaq.push(['_setAccount', 'UA-40756456-1']); hash = location.hash; if (hash) { _gaq.push(['_trackPageview', hash.substr(1)]); } else { _gaq.push(['_trackPageview']); } } catch(err) { } }); }(jQuery)); drupalgap.min.js:109 _drupalgap_form_submit_response_errors - SyntaxError: Unexpected token <
Hello, Thank you for contacting us about a 501 error in Drupal. I reviewed the apache error logs, and noticed that you are triggering a Mod_Security rule, causing it to be blocked. We are happy to help, but will need some additional information to help narrow down the cause. What are steps are you taking to get the error? This will help us replicate the problem. What are you trying to accomplish within Drupal? Is there possibly another way to do it, such as with a Module? If you have any further questions, feel free to post them below. Thank you, John-Paul