- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们最近越来越多地看到此错误出现 - 但并非始终如一,并且无法手动重现。
我们在 Ruby 2.6.5 上有一个标准的 Ruby on Rails 应用程序 (5.2.3)。
我已经阅读了所有其他具有类似标题的帖子,但我无法弄清楚这是从哪里来的,这里是我们的堆栈跟踪:
/gems/activesupport-5.2.3/lib/active_support/cache.rb:784 in dump
/gems/activesupport-5.2.3/lib/active_support/cache.rb:784 in compress!
/gems/activesupport-5.2.3/lib/active_support/cache.rb:722 in initialize
/gems/activesupport-5.2.3/lib/active_support/cache.rb:445 in new
/gems/activesupport-5.2.3/lib/active_support/cache.rb:445 in block in write
/gems/activesupport-5.2.3/lib/active_support/cache.rb:663 in block in instrument
/gems/activesupport-5.2.3/lib/active_support/notifications.rb:170 in instrument
/gems/activesupport-5.2.3/lib/active_support/cache.rb:663 in instrument
/gems/activesupport-5.2.3/lib/active_support/cache.rb:444 in write
/gems/ddtrace-0.29.1/lib/ddtrace/contrib/active_support/cache/instrumentation.rb:120 in write
/gems/i18n-1.8.3/lib/i18n/backend/cache.rb:97 in _fetch
/gems/i18n-1.8.3/lib/i18n/backend/cache.rb:87 in fetch
/gems/i18n-1.8.3/lib/i18n/backend/cache.rb:81 in translate
/gems/i18n-1.8.3/lib/i18n/backend/fallbacks.rb:41 in translate
/gems/i18n-1.8.3/lib/i18n.rb:206 in block in translate
/gems/i18n-1.8.3/lib/i18n.rb:202 in catch
/gems/i18n-1.8.3/lib/i18n.rb:202 in translate
/gems/i18n-1.8.3/lib/i18n/backend/base.rb:146 in block in resolve
/gems/i18n-1.8.3/lib/i18n/backend/base.rb:143 in catch
/gems/i18n-1.8.3/lib/i18n/backend/base.rb:143 in resolve
/gems/i18n-1.8.3/lib/i18n/backend/base.rb:129 in block in default
/gems/i18n-1.8.3/lib/i18n/backend/base.rb:128 in each
/gems/i18n-1.8.3/lib/i18n/backend/base.rb:128 in default
/gems/i18n-1.8.3/lib/i18n/backend/base.rb:35 in translate
/gems/i18n-1.8.3/lib/i18n/backend/cache.rb:81 in block in translate
/gems/i18n-1.8.3/lib/i18n/backend/cache.rb:96 in catch
/gems/i18n-1.8.3/lib/i18n/backend/cache.rb:96 in _fetch
/gems/i18n-1.8.3/lib/i18n/backend/cache.rb:87 in fetch
/gems/i18n-1.8.3/lib/i18n/backend/cache.rb:81 in translate
/gems/i18n-1.8.3/lib/i18n/backend/fallbacks.rb:48 in block (2 levels) in translate
/gems/i18n-1.8.3/lib/i18n/backend/fallbacks.rb:47 in catch
/gems/i18n-1.8.3/lib/i18n/backend/fallbacks.rb:47 in block in translate
/gems/i18n-1.8.3/lib/i18n/backend/fallbacks.rb:45 in each
/gems/i18n-1.8.3/lib/i18n/backend/fallbacks.rb:45 in translate
/gems/i18n-1.8.3/lib/i18n.rb:206 in block in translate
/gems/i18n-1.8.3/lib/i18n.rb:202 in catch
/gems/i18n-1.8.3/lib/i18n.rb:202 in translate
/gems/activemodel-5.2.3/lib/active_model/errors.rb:430 in generate_message
/gems/activemodel-5.2.3/lib/active_model/errors.rb:454 in normalize_message
/gems/activemodel-5.2.3/lib/active_model/errors.rb:298 in add
/gems/activemodel-5.2.3/lib/active_model/validations/presence.rb:7 in validate_each
/gems/activerecord-5.2.3/lib/active_record/validations/presence.rb:10 in validate_each
/gems/activemodel-5.2.3/lib/active_model/validator.rb:152 in block in validate
/gems/activemodel-5.2.3/lib/active_model/validator.rb:149 in each
/gems/activemodel-5.2.3/lib/active_model/validator.rb:149 in validate
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:426 in block in make_lambda
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:179 in block (2 levels) in halting_and_conditional
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:606 in block (2 levels) in default_terminator
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:605 in catch
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:605 in block in default_terminator
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:180 in block in halting_and_conditional
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:513 in block in invoke_before
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:513 in each
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:513 in invoke_before
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:131 in run_callbacks
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:816 in _run_validate_callbacks
/gems/activemodel-5.2.3/lib/active_model/validations.rb:409 in run_validations!
/gems/activemodel-5.2.3/lib/active_model/validations/callbacks.rb:118 in block in run_validations!
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:132 in run_callbacks
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:816 in _run_validation_callbacks
/gems/activemodel-5.2.3/lib/active_model/validations/callbacks.rb:118 in run_validations!
/gems/activemodel-5.2.3/lib/active_model/validations.rb:339 in valid?
/gems/activerecord-5.2.3/lib/active_record/validations.rb:67 in valid?
/gems/activerecord-5.2.3/lib/active_record/validations.rb:84 in perform_validations
/gems/activerecord-5.2.3/lib/active_record/validations.rb:46 in save
/gems/activerecord-5.2.3/lib/active_record/transactions.rb:310 in block (2 levels) in save
/gems/activerecord-5.2.3/lib/active_record/transactions.rb:387 in block in with_transaction_returning_status
/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:265 in transaction
/gems/activerecord-5.2.3/lib/active_record/transactions.rb:212 in transaction
/gems/activerecord-5.2.3/lib/active_record/transactions.rb:385 in with_transaction_returning_status
/gems/activerecord-5.2.3/lib/active_record/transactions.rb:310 in block in save
/gems/activerecord-5.2.3/lib/active_record/transactions.rb:325 in rollback_active_record_state!
/gems/activerecord-5.2.3/lib/active_record/transactions.rb:309 in save
/gems/activerecord-5.2.3/lib/active_record/suppressor.rb:44 in save
/gems/activerecord-5.2.3/lib/active_record/persistence.rb:428 in block in update
/gems/activerecord-5.2.3/lib/active_record/transactions.rb:387 in block in with_transaction_returning_status
/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:265 in transaction
/gems/activerecord-5.2.3/lib/active_record/transactions.rb:212 in transaction
/gems/activerecord-5.2.3/lib/active_record/transactions.rb:385 in with_transaction_returning_status
/gems/activerecord-5.2.3/lib/active_record/persistence.rb:426 in update
app/models/questionnaire/questionnaire_response.rb:290 in block in process_answers
288: process_valid_blank_answer(answer)
289: else
290: answer.update(value: answer_attributes[:value])
291: answers_errors[key] = answer.errors unless answer.valid?
292: end
/gems/actionpack-5.2.3/lib/action_controller/metal/strong_parameters.rb:338 in block in each_pair
/gems/actionpack-5.2.3/lib/action_controller/metal/strong_parameters.rb:337 in each_pair
/gems/actionpack-5.2.3/lib/action_controller/metal/strong_parameters.rb:337 in each_pair
app/models/questionnaire/questionnaire_response.rb:283 in process_answers
app/models/questionnaire/questionnaire_response.rb:218 in assign_params
app/models/questionnaire/questionnaire_response.rb:155 in save_draft
app/interactors/questionnaire/update_questionnaire_response.rb:53 in save_draft
app/interactors/questionnaire/update_questionnaire_response.rb:19 in call
/gems/interactor-3.1.2/lib/interactor.rb:143 in block in run!
/gems/interactor-3.1.2/lib/interactor/hooks.rb:213 in block in with_hooks
/gems/interactor-3.1.2/lib/interactor/hooks.rb:224 in run_around_hooks
/gems/interactor-3.1.2/lib/interactor/hooks.rb:211 in with_hooks
/gems/interactor-3.1.2/lib/interactor.rb:142 in run!
/gems/interactor-3.1.2/lib/interactor.rb:115 in run
/gems/interactor-3.1.2/lib/interactor.rb:50 in tap
/gems/interactor-3.1.2/lib/interactor.rb:50 in call
app/controllers/public_questionnaire_responses_controller.rb:56 in update_questionnaire_response
app/controllers/public_questionnaire_responses_controller.rb:31 in block in update
/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267 in block in transaction
/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:239 in block in within_new_transaction
/usr/local/lib/ruby/2.6.0/monitor.rb:235 in mon_synchronize
/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:236 in within_new_transaction
/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267 in transaction
/gems/activerecord-5.2.3/lib/active_record/transactions.rb:212 in transaction
app/controllers/public_questionnaire_responses_controller.rb:27 in update
/gems/actionpack-5.2.3/lib/action_controller/metal/basic_implicit_render.rb:6 in send_action
/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:194 in process_action
/gems/ddtrace-0.29.1/lib/ddtrace/contrib/action_pack/action_controller/instrumentation.rb:114 in process_action
/gems/actionpack-5.2.3/lib/action_controller/metal/rendering.rb:30 in process_action
/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:42 in block in process_action
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:109 in block in run_callbacks
app/controllers/public_questionnaire_responses_controller.rb:122 in block in set_response_locale
/gems/i18n-1.8.3/lib/i18n.rb:313 in with_locale
app/controllers/public_questionnaire_responses_controller.rb:122 in set_response_locale
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:118 in block in run_callbacks
/bundler/gems/grc_insight-4cd09d7a04d6/app/controllers/grc_insight/concerns/segment_io_monitoring.rb:46 in track_events
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:118 in block in run_callbacks
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:136 in run_callbacks
/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:41 in process_action
/gems/actionpack-5.2.3/lib/action_controller/metal/rescue.rb:22 in process_action
/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:34 in block in process_action
/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168 in block in instrument
/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb:23 in instrument
/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168 in instrument
/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:32 in process_action
/gems/actionpack-5.2.3/lib/action_controller/metal/params_wrapper.rb:256 in process_action
/gems/activerecord-5.2.3/lib/active_record/railties/controller_runtime.rb:24 in process_action
/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:134 in process
/gems/actionview-5.2.3/lib/action_view/rendering.rb:32 in process
/gems/actionpack-5.2.3/lib/action_controller/metal.rb:191 in dispatch
/gems/actionpack-5.2.3/lib/action_controller/metal.rb:252 in dispatch
/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:52 in dispatch
/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:34 in serve
/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:52 in block in serve
/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:35 in each
/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:35 in serve
/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:840 in call
/gems/flipper-0.16.2/lib/flipper/middleware/memoizer.rb:62 in memoized_call
/gems/flipper-0.16.2/lib/flipper/middleware/memoizer.rb:40 in call
/gems/flipper-0.16.2/lib/flipper/middleware/setup_env.rb:35 in call
/gems/warden-1.2.8/lib/warden/manager.rb:36 in block in call
/gems/warden-1.2.8/lib/warden/manager.rb:34 in catch
/gems/warden-1.2.8/lib/warden/manager.rb:34 in call
/gems/rack-2.2.2/lib/rack/tempfile_reaper.rb:15 in call
/gems/rack-2.2.2/lib/rack/etag.rb:27 in call
/gems/rack-2.2.2/lib/rack/conditional_get.rb:40 in call
/gems/rack-2.2.2/lib/rack/head.rb:12 in call
/gems/actionpack-5.2.3/lib/action_dispatch/http/content_security_policy.rb:18 in call
/gems/rack-2.2.2/lib/rack/session/abstract/id.rb:266 in context
/gems/rack-2.2.2/lib/rack/session/abstract/id.rb:260 in call
/gems/actionpack-5.2.3/lib/action_dispatch/middleware/cookies.rb:670 in call
/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:28 in block in call
/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:98 in run_callbacks
/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:26 in call
/gems/airbrake-10.0.4/lib/airbrake/rack/middleware.rb:34 in call!
/gems/airbrake-10.0.4/lib/airbrake/rack/middleware.rb:23 in call
/gems/actionpack-5.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:61 in call
/gems/ddtrace-0.29.1/lib/ddtrace/contrib/rails/middlewares.rb:17 in call
/gems/actionpack-5.2.3/lib/action_dispatch/middleware/show_exceptions.rb:33 in call
/gems/railties-5.2.3/lib/rails/rack/logger.rb:38 in call_app
/gems/railties-5.2.3/lib/rails/rack/logger.rb:26 in block in call
/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71 in block in tagged
/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:28 in tagged
/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71 in tagged
/gems/railties-5.2.3/lib/rails/rack/logger.rb:26 in call
/gems/actionpack-5.2.3/lib/action_dispatch/middleware/remote_ip.rb:81 in call
/gems/request_store-1.5.0/lib/request_store/middleware.rb:19 in call
/gems/actionpack-5.2.3/lib/action_dispatch/middleware/request_id.rb:27 in call
/gems/rack-2.2.2/lib/rack/method_override.rb:24 in call
/gems/rack-2.2.2/lib/rack/runtime.rb:22 in call
/gems/activesupport-5.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:29 in call
/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14 in call
/gems/actionpack-5.2.3/lib/action_dispatch/middleware/static.rb:127 in call
/gems/rack-2.2.2/lib/rack/sendfile.rb:110 in call
/gems/actionpack-5.2.3/lib/action_dispatch/middleware/ssl.rb:74 in call
/gems/ddtrace-0.29.1/lib/ddtrace/contrib/rack/middlewares.rb:85 in call
/gems/railties-5.2.3/lib/rails/engine.rb:524 in call
/gems/railties-5.2.3/lib/rails/railtie.rb:190 in public_send
/gems/railties-5.2.3/lib/rails/railtie.rb:190 in method_missing
/gems/unicorn-5.5.3/lib/unicorn/http_server.rb:605 in process_client
/gems/unicorn-5.5.3/lib/unicorn/http_server.rb:700 in worker_loop
/gems/unicorn-5.5.3/lib/unicorn/http_server.rb:548 in spawn_missing_workers
/gems/unicorn-5.5.3/lib/unicorn/http_server.rb:144 in start
/gems/unicorn-5.5.3/bin/unicorn:128 in <top (required)>
/bin/unicorn:23 in load
/bin/unicorn:23 in <top (required)>
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:74 in load
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:74 in kernel_load
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:28 in run
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:465 in exec
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/command.rb:27 in run
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126 in invoke_command
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor.rb:387 in dispatch
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:27 in dispatch
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/base.rb:466 in start
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:18 in start
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/exe/bundle:30 in block in <top (required)>
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/friendly_errors.rb:124 in with_friendly_errors
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/exe/bundle:22 in <top (required)>
/usr/local/bin/bundle:23 in load
/usr/local/bin/bundle:23 in <main>
日志:
https://pastebin.com/M0mM2Zsf
1592916416204,"Started PUT ""/questionnaire_responses/asda67SdD787a8sddadclmgh_eerw09/edit"" for 198.41.0.0 at 2020-06-23 12:46:56 +0000"
1592916416205,Processing by PublicQuestionnaireResponsesController#update as */*
1592916416206," Parameters: {""draft_button""=>""true"", ""authenticity_token""=>""cCGRhCDe6SUNDWKdsZ+WHT2BdLdGCHS8X1or9lJRIQBkoyRdabBgrUo+k+RCvsLMvBkk9myrnsmIiLkwOZ/Q1g=="", ""questionnaire_response""=>{""answers_attributes""=>{""4464407""=>{""question_id""=>""4464407"", ""files""=>[#<ActionDispatch::Http::UploadedFile:0x000000000c5f4fb8 @tempfile=#<Tempfile:/tmp/RackMultipart20200623-22-10wkf6r.pdf>, @original_filename=""Sep 19.pdf"", @content_type=""application/pdf"", @headers=""Content-Disposition: form-data; name=\""questionnaire_response[answers_attributes][4464407][files][]\""; filename=\""Sep 19.pdf\""\r
Content-Type: application/pdf\r
"">]}, ""4464406""=>{""question_id""=>""4464406"", ""files""=>[#<ActionDispatch::Http::UploadedFile:0x000000000c5f4dd8 @tempfile=#<Tempfile:/tmp/RackMultipart20200623-22-1ngl7kh.pdf>, @original_filename=""My PDF Sept 19, 2018.pdf"", @content_type=""application/pdf"", @headers=""Content-Disposition: form-data; name=\""questionnaire_response[answers_attributes][4464406][files][]\""; filename=\""My PDF Sept 19, 2018.pdf\""\r
Content-Type: application/pdf\r
"">]}, ""4464411""=>{""question_id""=>""4464411""}}}, ""_""=>""B728eVb0cPYcSgo3M_B7c"", ""id""=>""asda67SdD787a8sddadclmgh_eerw09""}"
1592916416208," [1m[36mAccount Load (0.5ms)[0m [1m[34mSELECT ""accounts"".* FROM ""accounts"" WHERE ""accounts"".""subdomain"" = $1 LIMIT $2[0m [[""subdomain"", ""customer-inc""], [""LIMIT"", 1]]"
1592916416210," [1m[36mAccount Load (0.4ms)[0m [1m[34mSELECT ""accounts"".* FROM ""accounts"" WHERE ""accounts"".""subdomain"" = $1 ORDER BY ""accounts"".""id"" ASC LIMIT $2[0m [[""subdomain"", ""customer-inc""], [""LIMIT"", 1]]"
1592916416213," [1m[36mQuestionnaire::QuestionnaireResponse Load (0.3ms)[0m [1m[34mSELECT ""questionnaire_responses"".* FROM ""questionnaire_responses"" WHERE ""questionnaire_responses"".""uid"" = $1 AND (""questionnaire_responses"".""done"" = $2 OR ""questionnaire_responses"".""done"" IS NULL) LIMIT $3[0m [[""uid"", ""asda67SdD787a8sddadclmgh_eerw09""], [""done"", false], [""LIMIT"", 1]]"
1592916416215," [1m[36mQuestionnaire Load (0.3ms)[0m [1m[34mSELECT ""questionnaires"".* FROM ""questionnaires"" WHERE ""questionnaires"".""id"" = $1[0m [[""id"", 379305]]"
1592916416217," [1m[36mQuestionnaire::QuestionnaireItem Load (0.3ms)[0m [1m[34mSELECT ""questionnaire_items"".* FROM ""questionnaire_items"" WHERE ""questionnaire_items"".""questionnaire_id"" = $1[0m [[""questionnaire_id"", 379305]]"
1592916416220," [1m[36mQuestion Load (0.5ms)[0m [1m[34mSELECT ""questions"".* FROM ""questions"" WHERE ""questions"".""id"" IN ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) ORDER BY questions.position ASC, questions.id ASC[0m [[""id"", 4464412], [""id"", 4464411], [""id"", 4464409], [""id"", 4464408], [""id"", 4464407], [""id"", 4464406], [""id"", 4463448], [""id"", 4463435], [""id"", 4463434], [""id"", 4463433], [""id"", 4463431], [""id"", 4463429], [""id"", 4463423]]"
1592916416222," [1m[36mPageBreak Load (0.3ms)[0m [1m[34mSELECT ""page_breaks"".* FROM ""page_breaks"" WHERE ""page_breaks"".""id"" IN ($1, $2, $3)[0m [[""id"", 360685], [""id"", 360603], [""id"", 360602]]"
1592916416225," [1m[36mQuestionnaire::SupportingFile Load (0.3ms)[0m [1m[34mSELECT ""questionnaire_supporting_files"".* FROM ""questionnaire_supporting_files"" WHERE ""questionnaire_supporting_files"".""questionnaire_id"" = $1[0m [[""questionnaire_id"", 379305]]"
1592916416227," [1m[36mProject Load (0.4ms)[0m [1m[34mSELECT ""projects"".* FROM ""projects"" WHERE ""projects"".""id"" = $1 ORDER BY LOWER(projects.name)[0m [[""id"", 119686]]"
1592916416229," [1m[36mAccount Load (0.5ms)[0m [1m[34mSELECT ""accounts"".* FROM ""accounts"" WHERE ""accounts"".""id"" = $1[0m [[""id"", 123456]]"
1592916416231," [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT ""users"".* FROM ""users"" WHERE ""users"".""email"" IS NULL LIMIT $1[0m [[""LIMIT"", 1]]"
1592916416233," [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT ""users"".* FROM ""users"" INNER JOIN ""accounts_users"" ON ""users"".""id"" = ""accounts_users"".""user_id"" WHERE ""accounts_users"".""account_id"" = $1 AND ""users"".""email"" IS NULL LIMIT $2[0m [[""account_id"", 123456], [""LIMIT"", 1]]"
1592916416235, [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
1592916416236," [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT ""users"".* FROM ""users"" WHERE ""users"".""id"" = $1 ORDER BY ""users"".""id"" ASC LIMIT $2[0m [[""id"", 149890], [""LIMIT"", 1]]"
1592916416239," [1m[35m (0.3ms)[0m [1m[34mSELECT ""questions"".""id"" FROM ""questions"" WHERE ""questions"".""questionnaire_id"" = $1 ORDER BY questions.position ASC, questions.id ASC[0m [[""questionnaire_id"", 379305]]"
1592916416241," [1m[36mAnswer Load (0.3ms)[0m [1m[34mSELECT ""answers"".* FROM ""answers"" WHERE ""answers"".""questionnaire_response_id"" = $1[0m [[""questionnaire_response_id"", 8072287]]"
1592916416243," [1m[36mQuestion Load (0.4ms)[0m [1m[34mSELECT ""questions"".* FROM ""questions"" WHERE ""questions"".""id"" IN ($1, $2, $3, $4) ORDER BY questions.position ASC, questions.id ASC[0m [[""id"", 4463448], [""id"", 4463431], [""id"", 4463429], [""id"", 4463423]]"
1592916416248," [1m[36mQuestion Load (0.4ms)[0m [1m[34mSELECT ""questions"".* FROM ""questions"" WHERE ""questions"".""id"" = $1 ORDER BY questions.position ASC, questions.id ASC LIMIT $2[0m [[""id"", 4464407], [""LIMIT"", 1]]"
1592916416251," [1m[36mAnswer Create (0.6ms)[0m [1m[32mINSERT INTO ""answers"" (""question_id"", ""questionnaire_response_id"", ""files"", ""created_at"", ""updated_at"") VALUES ($1, $2, $3, $4, $5) RETURNING ""id""[0m [[""question_id"", 4464407], [""questionnaire_response_id"", 8072287], [""files"", ""---
- Sep_19.pdf
""], [""created_at"", ""2020-06-23 12:46:56.250131""], [""updated_at"", ""2020-06-23 12:46:56.250131""]]"
1592916416390," [1m[36mQuestion Load (0.6ms)[0m [1m[34mSELECT ""questions"".* FROM ""questions"" WHERE ""questions"".""id"" = $1 ORDER BY questions.position ASC, questions.id ASC LIMIT $2[0m [[""id"", 4464406], [""LIMIT"", 1]]"
1592916416393," [1m[36mAnswer Create (0.5ms)[0m [1m[32mINSERT INTO ""answers"" (""question_id"", ""questionnaire_response_id"", ""files"", ""created_at"", ""updated_at"") VALUES ($1, $2, $3, $4, $5) RETURNING ""id""[0m [[""question_id"", 4464406], [""questionnaire_response_id"", 8072287], [""files"", ""---
- My_PDF_Sept_19__2018.pdf
""], [""created_at"", ""2020-06-23 12:46:56.391887""], [""updated_at"", ""2020-06-23 12:46:56.391887""]]"
1592916416489," [1m[36mQuestion Load (0.7ms)[0m [1m[34mSELECT ""questions"".* FROM ""questions"" WHERE ""questions"".""id"" = $1 ORDER BY questions.position ASC, questions.id ASC LIMIT $2[0m [[""id"", 4464411], [""LIMIT"", 1]]"
1592916416496, [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
1592916416498,Completed 500 Internal Server Error in 292ms (ActiveRecord: 8.9ms)
1592916416501,[analytics-ruby] Sending request for 1 items
1592916416507,
1592916416509,TypeError (no _dump_data is defined for class OpenSSL::Digest):
1592916416509,
1592916416509,app/models/questionnaire/questionnaire_response.rb:290:in `block in process_answers'
1592916416509,[uuid: 939e755ed429cb6fdf6f39e96040dd28] [user_uid: xkZGncsu_vCc] [subdomain: customer-inc] app/models/questionnaire/questionnaire_response.rb:283:in `process_answers'
1592916416509,[uuid: 939e755ed429cb6fdf6f39e96040dd28] [user_uid: xkZGncsu_vCc] [subdomain: customer-inc] app/models/questionnaire/questionnaire_response.rb:218:in `assign_params'
1592916416509,[uuid: 939e755ed429cb6fdf6f39e96040dd28] [user_uid: xkZGncsu_vCc] [subdomain: customer-inc] app/models/questionnaire/questionnaire_response.rb:155:in `save_draft'
1592916416509,[uuid: 939e755ed429cb6fdf6f39e96040dd28] [user_uid: xkZGncsu_vCc] [subdomain: customer-inc] app/interactors/questionnaire/update_questionnaire_response.rb:53:in `save_draft'
1592916416509,[uuid: 939e755ed429cb6fdf6f39e96040dd28] [user_uid: xkZGncsu_vCc] [subdomain: customer-inc] app/interactors/questionnaire/update_questionnaire_response.rb:19:in `call'
1592916416509,[uuid: 939e755ed429cb6fdf6f39e96040dd28] [user_uid: xkZGncsu_vCc] [subdomain: customer-inc] app/controllers/public_questionnaire_responses_controller.rb:56:in `update_questionnaire_response'
1592916416509,[uuid: 939e755ed429cb6fdf6f39e96040dd28] [user_uid: xkZGncsu_vCc] [subdomain: customer-inc] app/controllers/public_questionnaire_responses_controller.rb:31:in `block in update'
1592916416509,[uuid: 939e755ed429cb6fdf6f39e96040dd28] [user_uid: xkZGncsu_vCc] [subdomain: customer-inc] app/controllers/public_questionnaire_responses_controller.rb:27:in `update'
1592916416509,[uuid: 939e755ed429cb6fdf6f39e96040dd28] [user_uid: xkZGncsu_vCc] [subdomain: customer-inc] app/controllers/public_questionnaire_responses_controller.rb:122:in `block in set_response_locale'
1592916416509,[uuid: 939e755ed429cb6fdf6f39e96040dd28] [user_uid: xkZGncsu_vCc] [subdomain: customer-inc] app/controllers/public_questionnaire_responses_controller.rb:122:in `set_response_locale'
1592916416510,Processing by GrcShared::ErrorsController#show as */*
1592916416510," Parameters: {""draft_button""=>""true"", ""authenticity_token""=>""cCGRhCDe6SUNDWKdsZ+WHT2BdLdGCHS8X1or9lJRIQBkoyRdabBgrUo+k+RCvsLMvBkk9myrnsmIiLkwOZ/Q1g=="", ""questionnaire_response""=>{""answers_attributes""=>{""4464407""=>{""question_id""=>""4464407"", ""files""=>[#<ActionDispatch::Http::UploadedFile:0x000000000c5f4fb8 @tempfile=#<Tempfile:/tmp/RackMultipart20200623-22-10wkf6r.pdf>, @original_filename=""Sep 19.pdf"", @content_type=""application/pdf"", @headers=""Content-Disposition: form-data; name=\""questionnaire_response[answers_attributes][4464407][files][]\""; filename=\""Sep 19.pdf\""\r
Content-Type: application/pdf\r
"">]}, ""4464406""=>{""question_id""=>""4464406"", ""files""=>[#<ActionDispatch::Http::UploadedFile:0x000000000c5f4dd8 @tempfile=#<Tempfile:/tmp/RackMultipart20200623-22-1ngl7kh.pdf>, @original_filename=""My PDF Sept 19, 2018.pdf"", @content_type=""application/pdf"", @headers=""Content-Disposition: form-data; name=\""questionnaire_response[answers_attributes][4464406][files][]\""; filename=\""My PDF Sept 19, 2018.pdf\""\r
Content-Type: application/pdf\r
"">]}, ""4464411""=>{""question_id""=>""4464411""}}}, ""_""=>""B728eVb0cPYcSgo3M_B7c"", ""id""=>""asda67SdD787a8sddadclmgh_eerw09""}"
1592916416525, Rendering vendor/bundle/ruby/2.6.0/bundler/gems/grc_shared-cf61a08e39dd/app/views/grc_shared/errors/_show.erb
1592916416527, Rendered vendor/bundle/ruby/2.6.0/bundler/gems/grc_shared-cf61a08e39dd/app/views/grc_shared/errors/_show.erb (1.7ms)
1592916416529,Completed 500 Internal Server Error in 19ms (Views: 16.6ms | ActiveRecord: 0.0ms)
它只发生在那个 Controller 和 Action 上。
Answer
并且它有几个验证,主要是
presence: true
带有一堆不同的条件是否验证答案值(例如,必需与可选)。参数看起来像这样:
{
"_method": "put",
"aclui-uploader": {
"content_type": "application/pdf",
"headers": "Content-Disposition: form-data; name=\"aclui-uploader\"; filename=\"Jan 1.pdf\"\r\nContent-Type: application/pdf\r\n",
"original_filename": "Jan 1.pdf",
"tempfile": "#<File:0x000000000c3af9b0>"
},
"action": "update",
"authenticity_token": "[Filtered]",
"controller": "public_questionnaire_responses",
"draft_button": "true",
"id": "7sk8PPpb_KdV_h1jzXsP",
"questionnaire_response": {
"answers_attributes": {
"581102": {
"question_id": "581102"
},
"581111": {
"question_id": "581111",
"value": ""
},
"581124": {
"files": [
{
"content_type": "application/pdf",
"headers": "Content-Disposition: form-data; name=\"questionnaire_response[answers_attributes][581124][files][]\"; filename=\"Jan 1.pdf\"\r\nContent-Type: application/pdf\r\n",
"original_filename": "Jan 1.pdf",
"tempfile": "#<File:0x000000000c347ea0>"
}
],
"question_id": "581124"
},
"581128": {
"question_id": "581128",
"value": "ABC"
},
...
}
}
}
有时,该端点的错误率高达 13% 的请求,但通常要低得多,有时根本不会发生:
app/models/questionnaire/questionnaire_response.rb:283 in process_answers
下方)
最佳答案
这是缓存的一般错误
类似 no _dump_data is defined
的错误和 no marshal_dump is defined
大多数情况下发生在缓存实现中,并且很难知道错误发生在哪里。
为了修复这个 gerenic 错误,我建议调查所有新的 GEMs/features/edits
因为在某些部分,实现没有在“缓存数据”中获得通用数据。
例如,在我的实际实现中,尝试使用 searchkick
时出现此错误。与 view_components_reflexes
(谁可缓存所有数据)。我需要调整如何将数据发送到 view_components_reflex 才能工作。
关于ruby-on-rails - 神秘的类型错误:没有为 OpenSSL::Digest 类定义 _dump_data,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62456456/
我正在尝试更新我的 jtable(更改值并按 Enter 键),但出现错误。由于大小原因,错误未完整。我认为其余部分只是 c3p0 池连接工具生成的不相关信息。 假设 起初,我认为这可能是 c3p0
每当我有两个水平并排的元素并指定了右和/或左填充和/或边距时,元素之间通常会在我指定的上方和上方有空格。我希望有人能告诉我如何消除该空间(没有像负边距这样的笨拙东西)。 请注意:我并不是在寻找替代的多
String[] parts = msg.split(" +\n?"); String room = parts[0]; System.out.println(msg); Sy
我知道“一定有什么东西被改变了”,但我的代码似乎在一夜之间无缘无故地崩溃了。 我的服务器目录结构是这样的: / /scripts /audit /other_things 我在“scripts”文件夹
我正在尝试了解 GCM 的工作原理。为此,我复制/粘贴 http://developer.android.com/ 的代码在“实现 GCM 客户端”部分中提出。 从服务器发送消息是可行的,但是当我的客
在生成随机整数时,我发现了一些有趣的事情(至少对我而言),我无法向自己解释,所以我想我会把它贴在这里。 我的需求很简单:我要生成随机积分 (Int32) ID 并旨在最大程度地减少冲突。生成时间不是问
在这里https://stackoverflow.com/a/19915925/4673197我了解到我可以通过设置 IFS 将字符串拆分为数组。 在这里https://stackoverflow.c
我现在正在为我的 CS 测试学习,并尝试编写代码,以明文形式给出整个 IMDB 数据库,找到电影中共同点最多的 Actor 。我已经差不多完成了,只是不断遇到一个奇怪的 KeyError。这是我的代码
在 Android 平台上开发了几个月之后,我仍然有一个悬而未决的问题。很久以前,我注意到我有一个 Activity 不符合应用程序主题的其余部分。这意味着默认情况下,Activity 的字体颜色是白
本周,我注意到我的团队 Azure 门户上有一个持续的网络作业。 团队中没有人表示他们已经部署了它,或者熟悉它。我找到了这个博客: https://azure.microsoft.com/en-ca/
所以我正在制作一个小型闲置游戏,我的部分努力是格式化所有数字,以便它们之间有逗号(出于美观目的)。我成功地让我的货币 Energy 带有这些逗号,但我很难添加其他变量。我用了num.toLocaleS
我遇到了一个我以前从未见过的奇怪问题,我认为它一定是一些我在代码中没有看到的简单问题。 我有一个项目,其中定义了 2 个 Windows 服务。一个我称为 DataSyncService,另一个称为
我有这个jsfiddle一次有效。 function toggle_off(itemID){ alert(itemID+'->'+document.getElementById(itemID).g
更新:已解决,我是白痴,谢谢大家! Okay little bit weird.. I just created a layout file for list items, I can see it
问题:这段代码究竟在做什么? 另外:“w”的使用方式是否是某种现有算法?我试图弄清楚函数的意图,或者至少描述它产生的数字种类。 上下文:我正在查看 Martin O'Leary 的“Fantasy M
你能帮帮我吗?我正在将自己传递给它自己的纯虚函数。 n->dataCallback(handler, n, hangup); 其中 n 是我的类指针,dataCallback 是它自己的(纯)虚函数(
我知道这里有数百万篇关于这个异常(exception)的帖子,但我不明白这里的这个。我有一个极端简单的示例管道服务: [ServiceContract] public interface ISRARi
此代码有效,但它如何不实际调用任何列出的方法。它有效,但它的工作原理和原因似乎几乎是神奇的。我实际上从未调用过 Equals、GetHashCode 或 Compare,但代码有效。我也从不在实现两个
警告: Element 'TextStyle' from SDK library 'ui.dart' is implicitly hidden by 'text_style.dart'. 代码摘录:
我有一个似乎无法解开的谜。我有这个非常简单的单元测试,它使用了一个非常简单的自定义属性。该属性仅添加到甚至未实例化的 1 个类。我计算属性被构建的次数。由于类 MyDummyClass 上的属性,我希
我是一名优秀的程序员,十分优秀!