Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveRecord::RecordInvalid: Validation failed: Friend has already been taken #130

Open
dwilkie opened this issue Feb 3, 2015 · 0 comments
Labels

Comments

@dwilkie
Copy link
Owner

dwilkie commented Feb 3, 2015

Check full details on Airbrake: #1347479281950773896

Backtrace:

[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/validations.rb:79:in raise_record_invalid
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/validations.rb:43:in save!
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/attribute_methods/dirty.rb:29:in save!
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/transactions.rb:291:in block in save!
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/transactions.rb:347:in block in with_transaction_returning_status
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in block in transaction
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/transaction.rb:188:in within_new_transaction
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in transaction
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/transactions.rb:220:in transaction
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/transactions.rb:344:in with_transaction_returning_status
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/transactions.rb:291:in save!
[PROJECT_ROOT]/app/models/chat.rb:108:in activate!
[PROJECT_ROOT]/app/models/chat.rb:215:in initialize_and_activate_for_friend!
[PROJECT_ROOT]/app/models/chat.rb:63:in block in activate_multiple!
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/relation/delegation.rb:46:in each
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/relation/delegation.rb:46:in each
[PROJECT_ROOT]/app/models/chat.rb:62:in activate_multiple!
[PROJECT_ROOT]/app/models/chat.rb:141:in block in deactivate!
[PROJECT_ROOT]/app/models/chat.rb:140:in each
[PROJECT_ROOT]/app/models/chat.rb:140:in deactivate!
[PROJECT_ROOT]/app/jobs/chat_deactivator_job.rb:5:in perform
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.0/lib/active_job/execution.rb:32:in block in perform_now
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:117:in call
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:117:in call
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:338:in block (2 levels) in simple
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.0/lib/active_job/logging.rb:23:in call
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.0/lib/active_job/logging.rb:23:in block (4 levels) in <module:Logging>
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in block in instrument
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in instrument
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in instrument
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.0/lib/active_job/logging.rb:22:in block (3 levels) in <module:Logging>
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.0/lib/active_job/logging.rb:43:in block in tag_logger
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in block in tagged
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:26:in tagged
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in tagged
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.0/lib/active_job/logging.rb:43:in tag_logger
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.0/lib/active_job/logging.rb:19:in block (2 levels) in <module:Logging>
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:436:in instance_exec
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:436:in block in make_lambda
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:337:in call
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:337:in block in simple
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in call
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in _run_callbacks
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in _run_perform_callbacks
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in run_callbacks
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.0/lib/active_job/execution.rb:31:in perform_now
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.0/lib/active_job/execution.rb:21:in execute
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.0/lib/active_job/queue_adapters/sidekiq_adapter.rb:40:in perform
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/processor.rb:75:in execute_job
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/processor.rb:52:in block (2 levels) in process
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/middleware/chain.rb:127:in call
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/middleware/chain.rb:127:in block in invoke
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/middleware/server/active_record.rb:6:in call
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/middleware/chain.rb:129:in block in invoke
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/middleware/server/retry_jobs.rb:74:in call
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/middleware/chain.rb:129:in block in invoke
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/middleware/server/logging.rb:11:in block in call
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/logging.rb:24:in with_context
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/middleware/server/logging.rb:7:in call
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/middleware/chain.rb:129:in block in invoke
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/middleware/chain.rb:132:in call
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/middleware/chain.rb:132:in invoke
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/processor.rb:51:in block in process
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/processor.rb:98:in stats
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/sidekiq-3.3.1/lib/sidekiq/processor.rb:50:in process
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in public_send
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in dispatch
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:in dispatch
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in block in invoke
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in block in task
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in block in task
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in block in initialize
[PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in block in create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant