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

Invalid JSON Response Error #395

Open
axmitchell opened this issue Jul 15, 2021 · 1 comment
Open

Invalid JSON Response Error #395

axmitchell opened this issue Jul 15, 2021 · 1 comment

Comments

@axmitchell
Copy link

axmitchell commented Jul 15, 2021

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.

@AndrewKvalheim
Copy link

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

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