`prep_received_object': undefined method `id' for nil:NilClass (NoMethodError) #300

Closed
Goldens opened this Issue Jun 7, 2012 · 8 comments

Comments

Projects
None yet
4 participants

Goldens commented Jun 7, 2012

[Client - SiriProxy] OLD Client changed settings [NA] With Assistantid [3e30571b-384e-4c21-a028-46f969a2657b]
/usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/connection.rb:998:in prep_received_object': undefined methodid' for nil:NilClass (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/connection.rb:655:in process_compressed_data' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/connection.rb:620:inreceive_binary_data'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:94:in receive_data' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:65:inreceive_data'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:65:in receive_data' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:65:inreceive_data'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:65:in receive_data' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:65:inreceive_data'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:65:in receive_data' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun_machine'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy.rb:101:ininitialize'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/command_line.rb:103:in new' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/command_line.rb:103:instart_server'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/command_line.rb:92:in run_server' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/command_line.rb:42:ininitialize'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/bin/siriproxy:6:in new' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/bin/siriproxy:6:in<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/bin/siriproxy:23:in load' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/bin/siriproxy:23:in

'
zlib(finalizer): the stream was freed prematurely.
zlib(finalizer): the stream was freed prematurely.

Goldens commented Jun 7, 2012

How fix that?

Goldens commented Jun 7, 2012

and this....

[Client - SiriProxy] OLD Client changed settings [AC166C29-F8BA-4E42-AC33-85609F7815BB] With Assistantid [342e2259-7147-4be6-873a-9007fe1c2b52]
[Info - SiriProxy] Duplicate Assistand ID. Assistant NOT saved
/usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/db_classes.rb:419:in updateassistant': undefined methodlast_ip' for nil:NilClass (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/connection.rb:1008:in prep_received_object' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/connection.rb:655:inprocess_compressed_data'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/connection.rb:620:in receive_binary_data' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:94:inreceive_data'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy.rb:101:in initialize' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/command_line.rb:103:innew'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/command_line.rb:103:in start_server' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/command_line.rb:92:inrun_server'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/lib/siriproxy/command_line.rb:42:in initialize' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/bin/siriproxy:6:innew'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/siriproxy-0.9.13/bin/siriproxy:6:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/bin/siriproxy:23:inload'
from /usr/local/rvm/gems/ruby-1.9.3-p194@SiriProxy/bin/siriproxy:23:in `

'
zlib(finalizer): the stream was freed prematurely.
zlib(finalizer): the stream was freed prematurely.

Contributor

Raggyx commented Aug 23, 2012

Edit the file "connection.rb"

line 998
old: if @key.id != nil
new: if @key != nil and @key.id != nil

@Ponyboy47 Ponyboy47 closed this Sep 13, 2012

Contributor

Raggyx commented Nov 6, 2012

the second error has been fixed in 0.11.3 but the first still exists..
the line in that version is 1293 (siriproxy version 0.11.3)

Contributor

Raggyx commented Jan 16, 2013

@thpryrchn would you please add this too? I think it's in line 1381 now
thank you :)

thpryrchn added a commit that referenced this issue Jan 16, 2013

Fix Issue #300
Another thanks to @Raggyx
Collaborator

thpryrchn commented Jan 16, 2013

Done! Was nowhere near 1381 though :)

Contributor

Raggyx commented Jan 16, 2013

Thank you :)

Collaborator

thpryrchn commented Jan 16, 2013

BTW, to do a Pull request, the easiest way is to browse the code on github, select the edit button, and do your edits, then hit "Propose file change" button. Be sure to fill in the commit summery, and description. Then one of the mods on here (Probably me) will review it, and if we like it, it will go into the code :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment