ajax-datatables-rails icon indicating copy to clipboard operation
ajax-datatables-rails copied to clipboard

Invalid JSON Response Error

Open axmitchell opened this issue 4 years ago • 1 comments
trafficstars

Making a jump from 0.4.2 to the latest 1.3.1 version and Im now receiving an error:

NotImplementedError:
   NotImplementedError
#Selenium::WebDriver::Error::UnexpectedAlertOpenError:
     #   unexpected alert open: {Alert text : DataTables warning: table id=DataTables_Table_0 - Invalid JSON response.

The error points to this segment of code.

    respond_to do |format|
      format.html
      format.json do
        render json: VolunteerManagement::Admin::AssignmentsDatatable.new(
          view_context,
          school_id: @school.id,
          role_map: @role_map,
        )
      end
    end

VolunteerManagement::Admin::AssignmentsDatatable inherits from AjaxDatatablesRails::Base

Apologies if this isn't as thorough as expected. First time making an issue report. Will be happy to provide further details.

axmitchell avatar Jul 15 '21 20:07 axmitchell

Have you seen the migration documentation? Several methods in AjaxDatatablesRails::Base raise NotImplementedError.

AndrewKvalheim avatar Mar 06 '22 20:03 AndrewKvalheim