Skip to content

Instantly share code, notes, and snippets.

@axavio
Created February 24, 2012 03:02
Show Gist options
  • Save axavio/1896884 to your computer and use it in GitHub Desktop.
Save axavio/1896884 to your computer and use it in GitHub Desktop.
Diaspora error when trying to ignore someone
Started POST "/blocks?block[person_id]=5406" for 68.4.205.245 at Fri Feb 24 02:56:41 +0000 2012 pid=28521 time=1330052201
Processing by BlocksController#create as HTML pid=28521 time=1330052201
Parameters: {"authenticity_token"=>"/MLWI/xa2vE/hJH+fqsQSwGbgTZk7z0znP72UDW8+nc=", "block"=>{"person_id"=>"5406"}} pid=28521 time=1330052201
event=disconnect [email protected] [email protected] pid=28521 time=1330052201
Completed 500 Internal Server Error in 244ms pid=28521 time=1330052201
** [Hoptoad] Failure: Net::HTTPClientError pid=28521 time=1330052201
** [Hoptoad] Environment Info: [Ruby: 1.8.7] [Rails: 3.0.11] [Env: production] pid=28521 time=1330052201
** [Hoptoad] Response from Hoptoad:
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error>No project exists with the given API key.</error>
</errors>
pid=28521 time=1330052201
ActiveRecord::InvalidForeignKey (PGError: ERROR: update or delete on table "notifications" violates foreign key constraint "notification_actors_notification_id_fkey" on table "notification_actors"
DETAIL: Key (id)=(1017) is still referenced from table "notification_actors".
: DELETE FROM "notifications" WHERE "notifications"."recipient_id" = 7 AND "notifications"."type" = 'Notifications::StartedSharing' AND "notifications"."target_type" = 'Person' AND "notifications"."target_id" = 5406):
app/models/contact.rb:41:in `destroy_notifications'
lib/diaspora/user/connecting.rb:49:in `remove_contact'
lib/diaspora/user/connecting.rb:69:in `disconnect'
app/controllers/blocks_controller.rb:29:in `disconnect_if_contact'
app/controllers/blocks_controller.rb:8:in `create'
lib/chrome_frame.rb:39:in `call'
pid=28521 time=1330052201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment