HipByte / RubyMotionSamples

A collection of RubyMotion applications for code samples.
http://www.rubymotion.com
1.21k stars 341 forks source link

osx/Tweets app crashes on launch #31

Closed sferik closed 10 years ago

sferik commented 11 years ago

When I run the default rake task, I see the following:

     Build ./build/MacOSX-10.8-Development
       Run ./build/MacOSX-10.8-Development/Tweets.app/Contents/MacOS/Tweets
2013-07-11 13:06:27.249 Tweets[41600:2503] data_parser.rb:6:in `parse:': exception class/object expected (TypeError)
    from json_parser.rb:3:in `parse_from_url:'
    from app_delegate.rb:71:in `block in search:'
*** Dispatch block exited prematurely because of an uncaught exception:
data_parser.rb:6:in `parse:': exception class/object expected (TypeError)
    from json_parser.rb:3:in `parse_from_url:'
    from app_delegate.rb:71:in `block in search:'
thelastinuit commented 11 years ago

Well this will not fix that particular issue but check your url. It's probably wrong (something's missing like http or so). If the url is ok, you will not get that issue.

ghost commented 11 years ago

Just bought RubyMotion, ran this example and same error.

znz commented 11 years ago

http://search.twitter.com/search.json?q=xcode%20crash responses {"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]} with HTTP/1.1 410 Gone. So osx/Tweets should use API 1.1 instead of old API.

alloy commented 11 years ago

Is anyone interested in whipping up a patch for this?

dbryand commented 10 years ago

Also bitten by this. Any progress?

GantMan commented 10 years ago

thoughts on bringing in Twittermotion gem? Or should all RM samples be 100% native?

btw, the v1.1 URL is going to move to this: https://api.twitter.com/1.1/search/tweets.json?q=xcode%20crash

lrz commented 10 years ago

It looks like Twitter changed their API and now requires authentication even to search for tweets. So I guess we have 2 solutions here:

1) Port the sample to another "social network" (hacker news, reddit, ...) 2) Remove the sample

Thoughts?

GantMan commented 10 years ago

I'm pro-switching to new social network :+1:

Thus preserving the utility of the example.