Wicked n00b

I’ve recently become inspired to start looking into what it takes to
program rails applications. It’s ease of use has boggled my mind.

I downloaded instant rails and am up and running. I decided to try to
make that flickr application thats on the video on the rails site and
it was going great until I tried searching and got:


Showing app/views/flickr/_photo.rhtml where line #1 raised:

Invalid API Key (Key has expired)

Extracted source (around line #1):

1:

RAILS_ROOT: ./script/…/config/…


I’m assuming that the post important message is the one that says API
Key has expired… does anyone know why this is? I just created it.
Does it take some time to become active or what?

–Wes

Huggs wrote:

I’m assuming that the post important message is the one that says API
Key has expired… does anyone know why this is? I just created it.
Does it take some time to become active or what?

–Wes

I have the same problem. I got my key about a week ago (and hadn’t used
it much) and it expired two days ago. It seems that the Typo crew ran
into the same issue, they suggest registering a new api key.
(http://scottstuff.net/blog/articles/2006/08/31/typo-flickr-fix). I
applied for and recieved a new key and am still having the same
problem.

Any hints on how to resolve this would be appriciated.

– W

Wes wrote:

Huggs wrote:

I’m assuming that the post important message is the one that says API
Key has expired… does anyone know why this is? I just created it.
Does it take some time to become active or what?

–Wes

I have the same problem. I got my key about a week ago (and hadn’t used
it much) and it expired two days ago. It seems that the Typo crew ran
into the same issue, they suggest registering a new api key.
(http://scottstuff.net/blog/articles/2006/08/31/typo-flickr-fix). I
applied for and recieved a new key and am still having the same
problem.

Any hints on how to resolve this would be appriciated.

– W

I am also having the same problem… long after these previous 2 are
dated. I followed the video on the rubyonrails.org to the T! and still,
I recieve the api error even with 2 valid brand new api keys.

RuntimeError in Flickr#search
Showing app/views/flickr/_photo.rhtml where line #1 raised:

Invalid API Key (Key has expired)

Extracted source (around line #1):

1:

RAILS_ROOT: ./script/…/config/…

Application Trace | Framework Trace | Full Trace
C:/rails/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:67:in
request' C:/rails/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:142:inmethod_missing’
C:/rails/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:350:in
sizes' #{RAILS_ROOT}/app/views/flickr/_photo.rhtml:1:in_run_rhtml_flickr__photo’
#{RAILS_ROOT}/app/controllers/flickr_controller.rb:5:in search' -e:4 C:/rails/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:67:inrequest’
C:/rails/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:142:in
method_missing' C:/rails/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:350:insizes’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:314:in
compile_and_render_template' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:290:inrender_template’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:249:in
render_file' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:264:inrender’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/partials.rb:59:in
render_partial' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:29:inbenchmark’
C:/rails/ruby/lib/ruby/1.8/benchmark.rb:293:in measure' C:/rails/ruby/lib/ruby/1.8/benchmark.rb:307:inrealtime’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:29:in
benchmark' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/partials.rb:58:inrender_partial’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/partials.rb:73:in
render_partial_collection' C:/rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:ineach_with_index’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/partials.rb:71:in
render_partial_collection' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:734:inrender_partial_collection’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:651:in
render_with_no_layout' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/layout.rb:251:inrender_without_benchmark’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in
render' C:/rails/ruby/lib/ruby/1.8/benchmark.rb:293:inmeasure’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in
render' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:inperform_action_without_filters’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in
perform_action_without_benchmark' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
C:/rails/ruby/lib/ruby/1.8/benchmark.rb:293:in measure' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in
perform_action' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:inprocess_without_filters’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in
process_without_session_management_support' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:inprocess’
C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in
dispatch' C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:inhandle_dispatch’
C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in
service' C:/rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
C:/rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in run' C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:162:in start_thread' C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:95:instart’
C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:92:in start' C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:23:instart’
C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:82:in start' C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:indispatch’
C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:59
C:/rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require' C:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:inrequire’
C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30
C:/rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require' C:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:inrequire’
script/server:3
C:/rails/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:67:in
request' C:/rails/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:142:inmethod_missing’
C:/rails/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:350:in
sizes' #{RAILS_ROOT}/app/views/flickr/_photo.rhtml:1:in_run_rhtml_flickr__photo’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:314:in
compile_and_render_template' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:290:inrender_template’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:249:in
render_file' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:264:inrender’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/partials.rb:59:in
render_partial' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:29:inbenchmark’
C:/rails/ruby/lib/ruby/1.8/benchmark.rb:293:in measure' C:/rails/ruby/lib/ruby/1.8/benchmark.rb:307:inrealtime’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:29:in
benchmark' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/partials.rb:58:inrender_partial’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/partials.rb:73:in
render_partial_collection' C:/rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:ineach_with_index’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/partials.rb:71:in
render_partial_collection' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:734:inrender_partial_collection’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:651:in
render_with_no_layout' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/layout.rb:251:inrender_without_benchmark’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in
render' C:/rails/ruby/lib/ruby/1.8/benchmark.rb:293:inmeasure’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in
render' #{RAILS_ROOT}/app/controllers/flickr_controller.rb:5:insearch’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in
perform_action_without_filters' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:inperform_action_without_benchmark’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue' C:/rails/ruby/lib/ruby/1.8/benchmark.rb:293:inmeasure’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:inperform_action’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in
process_without_filters' C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:inprocess_without_session_management_support’
C:/rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in
process' C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:indispatch’
C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in
handle_dispatch' C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:inservice’
C:/rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in service' C:/rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:173:in start_thread' C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:162:instart_thread’
C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:95:in start' C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:92:instart’
C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:23:in start' C:/rails/ruby/lib/ruby/1.8/webrick/server.rb:82:instart’
C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in
dispatch' C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:59 C:/rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
C:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' C:/rails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30 C:/rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
C:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require’
script/server:3
-e:4
Request
Parameters: {“commit”=>“Find”, “tags”=>“as”}

Show session dump


flash: !map:ActionController::Flash::FlashHash {}

Response
Headers: {“cookie”=>[], “Cache-Control”=>“no-cache”}

if anyone could please shed some light on this it would be greatly
appreciated!

Thanks,
Dennis