JSON::ParserError in DevicesController#update

Richard Verbrugge richard.verbrugge at myhighspeed.ca
Mon Nov 2 12:30:53 EST 2015


795: unexpected token at 'undefined'

Extracted source (around line #117):


115

116

117

118

119

120

          

    if params.include? 'refresh_summary'

      can?(:read, 'devices/refresh_summary') do

        to_refresh = ActiveSupport::JSON.decode(params['refresh_summary'])

 

        for o in to_refresh['objects']

          task = {'name' => 'refreshObject', 'objectName' => o}

 


Request


Parameters:

{"authenticity_token"=>"pXbH/B/tm0FM1gX8GW//roVor+l5Jt0ogWzky2do1/4=",
 "refresh_summary"=>"undefined",
 "id"=>"001556-F%40ST2704N-N71425697007609"}

 

This error occurs when hitting the 'Refresh' button next to the Last inform
line, for all items.

 

Last inform: half a minute ago -
<http://access.myhighspeed.ca:3000/devices/001556-F%2540ST2704N-N71425697007
609> Refresh,
<http://access.myhighspeed.ca:3000/devices/001556-F%2540ST2704N-N71425697007
609> Ping

 

This is using v1.0.0

 

Any idea as to why?

 

Thanks!

 

/RV

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20151102/ea2f8605/attachment.html>


More information about the Users mailing list