0
我在rails應用程序中通過rails控制檯執行函數時出現此錯誤。主數據庫是OrientDB。這個功能是在循環中刪除OrientDB中的邊緣。RestClient :: Conflict:409衝突
RestClient::Conflict: 409 Conflict
from /home/ubuntu/.rvm/gems/ruby-2.4.0/gems/rest-client-1.8.0/lib/restclient/abstract_response.rb:74:in `return!'
from /home/ubuntu/.rvm/gems/ruby-2.4.0/gems/rest-client-1.8.0/lib/restclient/request.rb:495:in `process_result'
from /home/ubuntu/.rvm/gems/ruby-2.4.0/gems/rest-client-1.8.0/lib/restclient/request.rb:421:in `block in transmit'
from /home/ubuntu/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/net/http.rb:877:in `start'
from /home/ubuntu/.rvm/gems/ruby-2.4.0/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in `transmit'
from /home/ubuntu/.rvm/gems/ruby-2.4.0/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in `execute'
from /home/ubuntu/.rvm/gems/ruby-2.4.0/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute'
from /home/ubuntu/.rvm/gems/ruby-2.4.0/gems/rest-client-1.8.0/lib/restclient/resource.rb:67:in `post'
from /home/ubuntu/.rvm/gems/ruby-2.4.0/bundler/gems/active-orient-fdae334715ca/lib/rest/operations.rb:113:in `execute'
from /home/ubuntu/rails-project/config/initializers/string.rb:27:in `run_active_orient'
首先是我無法得到哪個應用程序生成此錯誤。是否RestClient by rails or active-orient gem(active-orient是ORM用於訪問導軌中的OrientDB)或orientDB-server。該函數似乎每次運行時都會在不同的步驟中產生錯誤。在orientDB服務器日誌屏幕上也沒有錯誤日誌。
任何人都可以幫助我解決這個錯誤,或幫助我瞭解是什麼導致了錯誤的產生。
從我從Fast&Furious的閱讀中瞭解到,休息客戶端並不打算在* rails中使用*。 –
我認爲這是他們的默認設置。此外,OrientDB以一種寧靜的方式迴應。 –