search for: dev_token

Displaying 2 results from an estimated 2 matches for "dev_token".

2007 Sep 11
3
Production mode bug with ruby/amazon
...#39;s what that looks like: retries = 3 #Errno::ECONNRESET begin Timeout::timeout(2) { products = search_method.call(key, mode).products } rescue # Errno::ECONNRESET, Errno::EPIPE => failure if retries > 0 @@req = Amazon::Search::Request.new(@@dev_token) retries -= 1 logger.error "Connection to amazon remade: #{$!}" retry else logger.error "Connection to amazon destroyed: #{$!}" raise end end Here, search_method is just an alias to one of the Amazon::Search::Request meth...
2007 Apr 04
0
error occurred while evaluating nil.accepts
...od, it works. If I give index params[:keywords] I get this error: Amazon::Search::Request::TypeError (non-existent/unimplemented search type: accepts): Any advice? Thanks, --Dean def index unless params[:keywords].nil? @books = Array.new request = Amazon::Search::Request.new( DEV_TOKEN, ASSOCIATE_ID, ''us'' ) response = request.keyword_search( params[:keywords] ) do | product| @books.push( Book.new( <snip snip> ) ) end end respond_to do |f| f.html { } f.js { } end end def show @book = Book.find(params[...