2015-04-28 41 views
0

剛剛開始發生。每當我在生產應用程序(通過Heroku CLI)中打開控制檯時,我都會收到此消息。預計(200)<=> Heroku控制檯中的實際(401未授權)

Connecting to database specified by DATABASE_URL 

Expected(200) <=> Actual(401 Unauthorized) 
    request => {:connect_timeout=>60, :headers=>{"Accept"=>"application/json", "Accept-Encoding"=>"gzip", "Authorization"=>"Basic OmQ5NDc0NTY0LWUwMDMtNDRlYy1hYTJjLTUxODYwMTI5YzA5Zg==", "User-Agent"=>"heroku-rb/0.2.1", "X-Heroku-API-Version"=>"3", "X-Ruby-Version"=>"2.0.0", "X-Ruby-Platform"=>"x86_64-linux", "Host"=>"api.heroku.com:443"}, :instrumentor_name=>"excon", :mock=>false, :read_timeout=>60, :retry_limit=>4, :ssl_ca_file=>"/app/vendor/bundle/ruby/2.0.0/gems/excon-0.13.4/data/cacert.pem", :ssl_verify_peer=>true, :write_timeout=>60, :host=>"api.heroku.com", :path=>"/apps/staging-xxxx/ps", :port=>"443", :query=>nil, :scheme=>"https", :expects=>200, :method=>:get} 
    response => #<Excon::Response:0x007f2ecf385658 @body="{\"id\":\"unauthorized\",\"error\":\"Invalid credentials provided.\"}", @headers={"Cache-Control"=>"no-transform", "Content-Type"=>"application/json", "Date"=>"Tue, 28 Apr 2015 18:40:19 GMT", "Request-Id"=>"53c8af5d-0d1c-46bf-8779-e5f6d6c8cd1a", "Server"=>"nginx/1.4.6 (Ubuntu)", "Status"=>"401 Unauthorized", "X-Content-Type-Options"=>"nosniff", "X-Runtime"=>"0.015607713", "Content-Length"=>"61", "Connection"=>"keep-alive"}, @status=401> 
Expected(200) <=> Actual(401 Unauthorized) 

控制檯仍然打開,但想知道爲什麼我每次打開prod控制檯時都會收到此消息。思考?

回答

0

問題出在delayed_job_recurring寶石。我刪除了寶石,錯誤消失了。

0

你是新鮮的API令牌,使用延遲的工作與無功是我們?

+0

我使用的是delayed_job gem,並有一個專門的後臺作業工。我沒有使用無用的工具。 –

+0

Doh .... heroku賬戶寶石? ...或者...您是否在與同一個heroku帳戶關聯的任何其他APP上使用無用功? – user2515011

+0

感謝您的幫助,我發現這是一個寶石問題,請參閱我的答案。 –