plamoni / SiriProxy

A (tampering) proxy server for Apple's Siri
GNU General Public License v3.0
2.12k stars 343 forks source link

InvalidByteSequenceError #389

Closed harlando closed 11 years ago

harlando commented 11 years ago

I followed all the steps. Got siriproxy running. When I try to connect for, the iPhone I see the connection attempt from the Ubuntu terminal but then siriproxy stops with an error. I am running Ubuntu on a VM in Parallels on A Mac. I'm connecting using an iPhone 5

SiriProxy up and running. Create server for iPhone connection start conn #<SiriProxy::Connection::Iphone:0x9f6cc74 @signature=3, @processed_headers=false, @output_buffer="", @input_buffer="", @unzipped_input="", @unzipped_output="", @unzip_stream=#, @zip_stream=#Zlib::Deflate:0x9f6cb98, @consumed_ace=false, @name="iPhone", @ssled=false> [Info - Plugin Manager] Plugins laoded: [#<SiriProxy::Plugin::Example:0x9906920 @manager=#<SiriProxy::PluginManager:0x9f6c940 @plugins=[...]>>] [Info - iPhone] Received Object: LoadAssistant /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:in encode': "\xAB" on UTF-8 (Encoding::InvalidByteSequenceError) from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:incharset_convert' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:442:in string_to_binary' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:48:into_binary' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in block in dict_to_binary' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:inmap' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in dict_to_binary' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:into_binary' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in block in dict_to_binary' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:inmap' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in dict_to_binary' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:into_binary' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:70:in to_str' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:363:into_str' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:398:in to_plist' from /home/user/SiriProxy/lib/siriproxy/connection.rb:150:ininject_object_to_output_stream' from /home/user/SiriProxy/lib/siriproxy/connection.rb:90:in process_compressed_data' from /home/user/SiriProxy/lib/siriproxy/connection.rb:58:inreceive_binary_data' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/eventmachine-1.0.0/lib/em/protocols/linetext2.rb:94:in receive_data' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:inrun_machine' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in run' from /home/user/SiriProxy/lib/siriproxy.rb:16:ininitialize' from /home/user/SiriProxy/lib/siriproxy/command_line.rb:96:in new' from /home/user/SiriProxy/lib/siriproxy/command_line.rb:96:instart_server' from /home/user/SiriProxy/lib/siriproxy/command_line.rb:85:in run_server' from /home/user/SiriProxy/lib/siriproxy/command_line.rb:37:ininitialize' from /home/user/SiriProxy/bin/siriproxy:6:in new' from /home/user/SiriProxy/bin/siriproxy:6:in<top (required)>' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/bin/siriproxy:19:in load' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/bin/siriproxy:19:in

' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/bin/ruby_noexec_wrapper:14:in eval' from /home/user/.rvm/gems/ruby-1.9.3-p327@SiriProxy/bin/ruby_noexec_wrapper:14:in
' user@ubuntu:~/SiriProxy$

jmmmm4 commented 11 years ago

https://github.com/jimmykane/The-Three-Little-Pigs-Siri-Proxy/issues/389

harlando commented 11 years ago

Hi, thanks for the link. I just read the thread in The-Three-Little-Pigs. I'm new to this stuff, does the link provide a solution?

Thanks :-)

jmmmm4 commented 11 years ago

Done :-)

Sent from my iPad

On 16 Dec 2012, at 22:25, harlando notifications@github.com wrote:

Hi, thanks for the link. I just read the thread in The-Three-Little-Pigs. I'm new to this stuff, does the link provide a solution?

Thanks :-)

— Reply to this email directly or view it on GitHubhttps://github.com/plamoni/SiriProxy/issues/389#issuecomment-11423899.

harlando commented 11 years ago

Awesome!!!! Can't wait to get home and try it. That's super nice of you to help out.

jmmmm4 commented 11 years ago

No problem - I had the same issues today trying to get it working! It's working properly now :-)

Sent from my iPhone

On 16 Dec 2012, at 22:36, harlando notifications@github.com wrote:

Awesome!!!! Can't wait to get home and try it. That's super nice of you to help out.

— Reply to this email directly or view it on GitHubhttps://github.com/plamoni/SiriProxy/issues/389#issuecomment-11424065.

harlando commented 11 years ago

It worked!!!!!!! I'm so excited, thanks! Now onto plugins......

elmurato commented 11 years ago

I can confirm that the workaround works (siriproxy 0.3.2 iphone 5 ios 6.0.1), Should be fixed in the installer though. I think this issue can be closed now.

flash66 commented 11 years ago

Just replace the lib folder located in .rvm/gems/ruby-1.9.3-p0@SiriProxy/gems/CFPropertyList-2.2.0 with the lib folder located in your earlier CFPropertyList-2.. that worked. Forget about the line change and just leave it "CFPropertyList" in siriproxy.gemspec If the line change didn't work for you, then this will :)

Deanmv commented 11 years ago

The above worked for me but my CFPropertyList 2.1.2 was deleted when 2.2.0 was installed I think, (or maybe anyone that installed after 2.2.0 was released on 14th Dec). I had to run

gem install CFPropertyList -v 2.1.2

and apply the patch to the gemspec file for it to work again.

mpdifran commented 11 years ago

I've installed v 2.1.2 of CFPropertyList, and edited the gemspec to use 2.1.2, but I still get the error. Does the 2.1.2 folder need to be in the same location as the 2.2.0 fodler? ie in .rvm/gems/ruby-1.9.3-p0@SiriProxy/gems/ ?

EDIT I've copied the contents of 2.1.2 into the folder in @SiriProxy named 2.2.0, it seems to be the only way I could get it to work...

plamoni commented 11 years ago

Possible fix here: 4a1ba082fdd55ea2bbca5f0d04aa5c095ea46459

I can't test because I'm about 1700 miles from home at the moment. However, this should work to fix the issue.

Try it out using siriproxy update --branch cfpropertylist-fix

I'll test it when I get home and if it's fine I'll merge into master.

Sorry for the trouble, I should have fixed this one a while ago.

ciryon commented 11 years ago

I can confirm that the fix works. Thanks!

plamoni commented 11 years ago

I can also confirm it works (or at least doesn't break anything major). I'm going to merge to master. Thanks for the second look, @ciryon