2011-03-21 44 views
0

我在使用CouchRest Db在Ruby 1.9.2上調用Db時遇到問題。相同的調用與Ruby 1.8.7版本兼容。CouchRest 1.0.1是否與Ruby 1.9.2兼容版本

是否有人使用COuchrest 1.0.1以及Ruby 1.9.2或類似版本。

我得到的錯誤是 -

RestClient::BadRequest: 400 Bad Request 
    from ~/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in `return!' 
    from ~/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in `process_result' 
    from ~/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.1/lib/restclient/request.rb:169:in `block in transmit' 
    from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:627:in `start' 
    from ~/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in `transmit' 
    from ~/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute' 
    from ~/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute' 
    from ~/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.1/lib/restclient.rb:76:in `put' 
    from ~/.rvm/gems/ruby-1.9.2-p180/gems/couchrest-1.0.1/lib/couchrest/rest_api.rb:13:in `put' 
    from ~/.rvm/gems/ruby-1.9.2-p180/gems/couchrest-1.0.1/lib/couchrest/database.rb:176:in `save_doc' 
    from ~/.rvm/gems/ruby-1.9.2-p180/gems/couchrest-1.0.1/lib/couchrest/document.rb:42:in `save' 
    from ~/.rvm/gems/ruby-1.9.2-p180/gems/couchrest-1.0.1/lib/couchrest/design.rb:61:in `save' 

感謝。

回答

0

終於搞定了。沒有兼容性問題,該問題與無法在查詢中發送數據庫名稱有關。

+0

我有類似的問題。你可以說得更詳細點嗎? https://gist.github.com/2862111 – 2012-06-03 05:54:10

相關問題