Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery-ui sortable getting error - PUT 501 (Not Implemented)
    primarykey
    data
    text
    <p>I have a Rails app with jquery-ui sortable lists. When the user drags from one list to another the wostatus_id field gets updated. So, it's failing on a jquery Ajax update.</p> <p>This works fine in localhost and on Heroku. But, I'm moving the app to a Bitnami Virtual Server + Rails implementation. I don't know if it's related, but I'm using node.js on the new server.</p> <p>On this new server, I'm getting this error on the browser console:</p> <pre><code>PUT http://ndeavor.ameipro.com/workorders/2 501 (Not Implemented) </code></pre> <p><img src="https://i.stack.imgur.com/LrMmR.png" alt="enter image description here"></p> <p>This is the coffee script:</p> <pre><code> $("#sort1, #sort2, #sort3, #sort4, #sort5, #sort6, #sort7").sortable connectWith: ".connectedSortable" cursor: "move" update: -&gt; $.post($(this).data('update-url'), $(this).sortable('serialize')) receive: (event, ui) -&gt; str_id = $(ui.item).attr('id') woid = str_id.split('_')[1] $.update "/workorders/" + woid, workorder: wostatus_id: $(this).data('wostatus-id') </code></pre> <p>Thanks for the help!</p> <p>UPDATE1</p> <p>I'm getting the same error when I drag an event from one day to another using the fullcalendar-rails month view.</p> <p>UDPATE2</p> <p>I found this "Fixing 501 error code The client should specify a valid request type. Even after that if the Web server is responding incorrectly, then the web server simply needs to be upgraded to fix the issue."</p> <p>I'm sure the request is OK - the same code has been running on localhost and Heroku for months. So, it has to be something to do with the new virtual server I'm using.</p> <p>The new server is Bitnami Rails stack. It has node.js installed. I'm running Apache, Passenger and PG.</p> <p>How would I upgrade the server to fix the problem???</p> <p>UPDATE3</p> <p>This coffeescript gets the same response:</p> <pre><code>updateEvent = (the_event) -&gt; $.update "/events/" + the_event.id, event: title: the_event.title, starts_at: "" + the_event.start, ends_at: "" + the_event.end, description: the_event.description </code></pre> <p>UPDATE4</p> <p>Could Apache be stopping the use of PUT? Maybe some setting in https.conf?</p> <p>UPDATE5</p> <p>The same app runs fine using Thin !!!! So, I'm going to try and use Nginx and Thin.</p> <p>UPDATE6</p> <p>I can't get it to work. So, I'm going to try Nginx and 5 Thin app servers.</p> <p>UPDATE7</p> <p>I now have the Rails app running on Nginx and 5 Thin servers. I still get the 501 PUT - jquery error !!!!</p> <p>If I run Thin in stand-alone on port 3000, it works fine.</p> <p>If I run Thin stand-alone on port 80, I get the same JQUERY PUT 501 error.</p> <p>So, something is wrong with our servers using port 80.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload