2012-06-11 13 views
9

मुझे पता है कि यह एक और हैरोकू त्रुटि एच 12 (अनुरोध समय समाप्ति) समस्या। ऐसा लगता है कि यह मुद्दा कई अलग-अलग कारणों से हुआ है। मैंने कुछ दिनों पहले हीोकू पर एक रेल 3.2.2 ऐप तैनात किया था। जब मैं ब्राउज़र के माध्यम से अपने ऐप तक पहुंचने का प्रयास करता हूं। मुझेहेरोोकू त्रुटि एच 12 (अनुरोध समय समाप्ति) समस्या

Application Error 
An error occurred in the application and your page could not be served. Please try  again in a few moments. 

If you are the application owner, check your logs for details. 

इसलिए मैं सामान्य रूप से इंटरनेट पर खोज करना शुरू कर रहा हूं कि क्या गलत है। फिर मैं अपनी लॉग फ़ाइल देखने के लिए heroku लॉग का उपयोग करना सीखता हूं। लॉग फ़ाइल यहाँ है।

2012-06-11T03:16:51+00:00 heroku[web.1]: Unidling 
2012-06-11T03:16:51+00:00 heroku[web.1]: State changed from down to created 
2012-06-11T03:16:51+00:00 heroku[web.1]: State changed from created to starting 
2012-06-11T03:16:56+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 43527` 
2012-06-11T03:17:09+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5) 
2012-06-11T03:17:09+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5) 
2012-06-11T03:17:09+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5) 
2012-06-11T03:17:16+00:00 app[web.1]: [2012-06-11 03:17:16] INFO WEBrick 1.3.1 
2012-06-11T03:17:16+00:00 app[web.1]: [2012-06-11 03:17:16] INFO WEBrick::HTTPServer#start: pid=1 port=43527 
2012-06-11T03:17:16+00:00 app[web.1]: [2012-06-11 03:17:16] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux] 
2012-06-11T03:17:17+00:00 heroku[web.1]: State changed from starting to up 
2012-06-11T03:17:19+00:00 app[web.1]: => Booting WEBrick 
2012-06-11T03:17:19+00:00 app[web.1]: => Rails 3.2.2 application starting in production on http://0.0.0.0:43527 
2012-06-11T03:17:19+00:00 app[web.1]: => Call with -d to detach 
2012-06-11T03:17:19+00:00 app[web.1]: => Ctrl-C to shutdown server 
2012-06-11T03:17:19+00:00 app[web.1]: 
2012-06-11T03:17:19+00:00 app[web.1]: 
2012-06-11T03:17:19+00:00 app[web.1]: Started GET "/" for 123.240.186.119 at 2012-06-11 03:17:19 +0000 
2012-06-11T03:17:20+00:00 app[web.1]: Processing by StaticPagesController#home as HTML 
2012-06-11T03:17:20+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (40.3ms) 
2012-06-11T03:17:49+00:00 heroku[router]: Error H12 (Request timeout) -> GET cold-lightning-6691.herokuapp.com/ dyno=web.1 queue= wait= service=30000ms status=503 bytes=0 

लॉग की समीक्षा करने के बाद, मुझे वास्तव में समझ में नहीं आता कि क्या गलत है। मैंने फिर से इंटरनेट पर शोध किया। ऐसा लगता है कि इस मुद्दे का कारण बनने के कई अलग-अलग कारण हैं। मुझे पता है कि मेरे ऐप में कुछ बग्स हो सकती हैं। लेकिन मैं नहीं बता सकता कि मेरे कोड का कौन सा हिस्सा गलत है।

और मैं अपने ऐप को अपने स्थानीय कंप्यूटर में चला सकता हूं। तो क्या आपको पता है कि समस्या क्या है या समस्या को कैसे हल किया जाए?

अद्यतन: precompile --trace

:

जब मैं Git धक्का Heroku कर

मैं यह त्रुटि संदेश

Your bundle is complete! It was installed into ./vendor/bundle 
     Cleaning up the bundler cache. 
-----> Writing config/database.yml to read from DATABASE_URL 
-----> Preparing app for Rails asset pipeline 
     Running: rake assets:precompile 
     rake aborted! 
     could not connect to server: Connection refused 
     Is the server running on host "127.0.0.1" and accepting 
     TCP/IP connections on port 5432? 

और मैं $ Heroku रन रेक संपत्ति चलाने प्राप्त

मुझे

मिला
Running rake assets:precompile --trace attached to terminal... up, run.1 
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-  rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7) 
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7) 
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7) 
** Invoke assets:precompile (first_time) 
** Execute assets:precompile 
/usr/local/bin/ruby /app/vendor/bundle/ruby/1.9.1/bin/rake assets:precompile:all  RAILS_ENV=production RAILS_GROUPS=assets --trace 
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7) 
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7) 
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7) 
** Invoke assets:precompile:all (first_time) 
** Execute assets:precompile:all 
** Invoke assets:precompile:primary (first_time) 
** Invoke assets:environment (first_time) 
** Execute assets:environment 
** Invoke environment (first_time) 
** Execute environment 
** Invoke tmp:cache:clear (first_time) 
** Execute tmp:cache:clear 
** Execute assets:precompile:primary 
rake aborted! 
Unexpected token: operator (<) (line: 11780, col: 1, pos: 325392) 

Error 
at new JS_Parse_Error (/tmp/execjs20120611-10-3yiu6e.js:497:22) 
at js_error (/tmp/execjs20120611-10-3yiu6e.js:505:15) 
at croak (/tmp/execjs20120611-10-3yiu6e.js:954:17) 
at token_error (/tmp/execjs20120611-10-3yiu6e.js:961:17) 
at unexpected (/tmp/execjs20120611-10-3yiu6e.js:967:17) 
at /tmp/execjs20120611-10-3yiu6e.js:1340:17 
at maybe_unary (/tmp/execjs20120611-10-3yiu6e.js:1425:27) 
at expr_ops (/tmp/execjs20120611-10-3yiu6e.js:1452:32) 
at maybe_conditional (/tmp/execjs20120611-10-3yiu6e.js:1456:28) 
at maybe_assign (/tmp/execjs20120611-10-3yiu6e.js:1480:28) 
    (in /app/app/assets/javascripts/application.js) 
/app/vendor/bundle/ruby/1.9.1/gems/execjs-1.3.0/lib/execjs/external_runtime.rb:67:in `extract_result' 
/app/vendor/bundle/ruby/1.9.1/gems/execjs-1.3.0/lib/execjs/external_runtime.rb:27:in `block in exec' 
/app/vendor/bundle/ruby/1.9.1/gems/execjs-1.3.0/lib/execjs/external_runtime.rb:40:in `compile_to_tempfile' 
/app/vendor/bundle/ruby/1.9.1/gems/execjs-1.3.0/lib/execjs/external_runtime.rb:26:in `exec' 
/app/vendor/bundle/ruby/1.9.1/gems/uglifier-1.2.3/lib/uglifier.rb:101:in `compile' 
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/sprockets/compressors.rb:74:in `compress' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/processing.rb:265:in `block in js_compressor=' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/processor.rb:29:in `call' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/processor.rb:29:in `evaluate' 
/app/vendor/bundle/ruby/1.9.1/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/context.rb:177:in `block in evaluate' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/context.rb:174:in `each' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/context.rb:174:in `evaluate' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/bundled_asset.rb:26:in `initialize' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/base.rb:244:in `new' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/base.rb:244:in `build_asset' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/index.rb:89:in `block in build_asset' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/caching.rb:19:in `cache_asset' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/index.rb:88:in `build_asset' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/base.rb:163:in `find_asset' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/index.rb:56:in `find_asset' 
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/sprockets/static_compiler.rb:20:in `block in compile' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/base.rb:212:in `block in each_logical_path' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/base.rb:200:in `block (2 levels) in each_file' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/base.rb:190:in `each' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/base.rb:190:in `each_entry' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/base.rb:198:in `block in each_file' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/base.rb:197:in `each' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/base.rb:197:in `each_file' 
/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.1.2/lib/sprockets/base.rb:210:in `each_logical_path' 
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/sprockets/static_compiler.rb:18:in `compile' 
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/sprockets/assets.rake:56:in `internal_precompile' 
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/sprockets/assets.rake:70:in `block (3 levels) in <top (required)>' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain' 
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke' 
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain' 
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' 
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `load' 
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `<main>' 
Tasks: TOP => assets:precompile:primary 
rake aborted! 
Command failed with status (1): [/usr/local/bin/ruby /app/vendor/bundle/rub...] 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby' 
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/sprockets/assets.rake:12:in `ruby_rake_task' 
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task' 
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain' 
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' 
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' 
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `load' 
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `<main>' 
Tasks: TOP => assets:precompile 
+0

आपकी 'स्टेटिक पेज कंट्रोलर # होम' विधि क्या करती है? क्या यह ऐसा कुछ कर रहा है जो 30 सेकंड से अधिक समय ले सकता है? उदाहरण के लिए - कॉलआउट के माध्यम से कहीं अलग सर्वर तक पहुंचने का प्रयास कर रहे हैं? –

+0

@ जोन यहाँ StaticPagesController # घर से कोड है। यह डेटाबेस से डेटा पुनर्प्राप्त करता है। 'क्लास स्टेटिक पेज कंट्रोलर <एप्लिकेशन कंट्रोलर' 'def home' ' अगर साइन_इन? ' ' @micropost = current_user.microposts.build अगर साइन किया गया है? '@feed_items = current_user.feed.paginate (पृष्ठ: पैराम्स [: पृष्ठ], per_page: 10)' 'अंत' ' अंत' – Seadaniel

उत्तर

3

त्रुटियां application.css के रूप में सामने आईं। जब मैं स्थानीय mahcine पर assets:precompile रेक भाग गया वहाँ /assets/stylesheets

में एक .css.scss फाइलों में कीड़े हैं, यह application.css में त्रुटियों दिखाया। यह इंगित करता है कि application.css में कौन सा कोड गलत है।

बाद मैं सीएसएस संशोधित और मैं config.assets.initialize_on_precompile = false' in config/application.rb ' http://www.simonecarletti.com/blog/2012/02/heroku-and-rails-3-2-assetprecompile-error/

समस्या हल कर दिया है!

+0

आपको कई समस्याएं हैं। पहली समस्या एक अनुरोध 30 से अधिक समय ले रहा था। 30 के बाद Heroku समय बाहर। 'सेवा = 30000ms'। दूसरी समस्या आपकी जेएस त्रुटि और स्पष्ट रूप से सीएसएस त्रुटि भी थी। तीसरा यह है कि आपको किसी उत्पाद साइट के लिए वेबब्रीक का उपयोग नहीं करना चाहिए क्योंकि यह सिंगल थ्रेड किया गया है और जितना तेज़ नहीं है उतना ही हैरोकू ने यूनिकॉर्न की सिफारिश की है। – Chloe

+0

मुझे एच 12 त्रुटियां भी थीं। चूंकि मैं एक मणि के माध्यम से कुछ तीसरे पक्ष के स्काई पुस्तकालयों का उपयोग कर रहा था, मुझे मणि को हटाने और मैन्युअल रूप से विक्रेता/स्टाइलशीट फ़ोल्डर में स्कैस फ़ाइलों को जोड़ने और रेक रेक परिसंपत्तियों को जोड़ने का सहारा लेना पड़ा: स्क्रोस को हेरोकू के सर्वर पर संकलित करने और कोशिश करने की बजाय प्रीकंपाइल यह पता लगाने के लिए कि क्या गलत हुआ। – Ketan

6

ऐसा लगता है कि आपको टाइमआउट मिल रहा है, हो सकता है कि फ़ीड() कॉल 30 सेकंड से अधिक समय ले ले?

https://devcenter.heroku.com/articles/error-codes#h12__request_timeout पर H12 त्रुटि कोड के बारे में अधिक जानकारी। मैं आपको https://devcenter.heroku.com/articles/request-timeout पर वर्णित रैक-टाइमआउट इंस्टॉल करने की भी सलाह देता हूं।

8

यह आज मेरे साथ हुआ। यह सामान्य व्यवहार नहीं है, लेकिन स्पष्ट रूप से मुझे बस इतना करना है कि मेरे कंप्यूटर मॉनिटर के माध्यम से हेरोकू को डांट दिया गया था, इसके बारे में सोचने के लिए प्रतीक्षा करें कि यह कितना शरारती था, और अंत में यह इसके व्यवहार को सही करता था।

कभी-कभी हरोकू मूडी है?

+0

: गोल्फ क्लैप: अच्छी तरह से किया गया Lambda – Trip

+2

टिप्पणी बहुत मजेदार है, लेकिन यह वास्तव में उच्च गुणवत्ता नहीं है। – Cos

1

मुझे एक बहुत ही समस्या थी और डेटाबेस के साथ कनेक्शन समस्या को संकुचित कर दिया गया। मैं हेरोकू के सीडर स्टैक पर क्लियर डीबी का उपयोग कर रहा हूं और पाया कि "configRecord :: कनेक्शन एडेप्टर :: कनेक्शन प्रबंधन" को मेरी config.ru फ़ाइल में डालने से, समस्या दूर हो जाती है।

1

मुझे एक समान समस्या थी और एक दिन के लिए छोड़ने के बाद, मैं वापस आ गया और मेरी त्रुटि पाई। जब सर्वर की तरफ एक त्रुटि हुई तो मैं क्लाइंट को प्रतिक्रिया नहीं भेज रहा था। सुनिश्चित करें कि आप प्रतिक्रिया वापस कर रहे हैं इससे कोई फर्क नहीं पड़ता कि आपके सर्वर साइड एल्गोरिदम का नतीजा क्या है। अगर कोई त्रुटि है, तो उसे वापस करें। अगर अनुरोध सफल हुआ, तो उस प्रतिक्रिया को वापस कर दें। मुझे आशा है कि वह मदद करेंगे।

यदि इससे मदद नहीं मिलती है, तो अनुरोध समय समाप्ति पर हेरोकू के मार्गदर्शिका देखें, विशेष रूप से डिबगिंग अनुरोध टाइमआउट अनुभाग सहायता का हो सकता है।

+1

यह बिल्कुल मेरी गलती थी। बहुत धन्यवाद !!! – JRichardsz

संबंधित मुद्दे