CPSSD / rabble

Rabble is a federated blogging platform built with ActivityPub
MIT License
7 stars 1 forks source link

Allow a Mastodon user to follow a Rabble user #520

Closed iandioch closed 5 years ago

iandioch commented 5 years ago

Mastodon successfully fetches the actor document of a Rabble user.

Apr 04 18:31:34 rabble-network start_production.sh[23529]: actors_service_40_1             | Actor requested for bort
Apr 04 18:31:34 rabble-network start_production.sh[23529]: actors_service_40_1             | User bort@None (id None) host_is_null: True requested from database
Apr 04 18:31:34 rabble-network start_production.sh[23529]: actors_service_40_1             | Found user bort@None (id None) from database
Apr 04 18:31:34 rabble-network start_production.sh[23529]: actors_service_40_1             | Normalising hostname from "apd.rabble.network" to "https://apd.rabble.network".
Apr 04 18:31:34 rabble-network start_production.sh[23529]: actors_service_40_1             | Normalising hostname from "apd.rabble.network" to "https://apd.rabble.network".
Apr 04 18:31:34 rabble-network start_production.sh[23529]: actors_service_40_1             | Normalising hostname from "apd.rabble.network" to "https://apd.rabble.network".
Apr 04 18:31:34 rabble-network start_production.sh[23529]: actors_service_40_1             | Building actor for local user
Apr 04 18:31:34 rabble-network start_production.sh[23529]: actors_service_40_1             | Normalising hostname from "apd.rabble.network" to "https://apd.rabble.network".
Apr 04 18:31:34 rabble-network start_production.sh[23529]: actors_service_40_1             | Building actor for local user
Apr 04 18:31:34 rabble-network start_production.sh[23529]: skinny_aaron_1                  | 2019/04/04 18:31:34 Created actor successfully.

However, gets the following error:

web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] method=GET path=/api/v2/search format=html controller=Api::V2::SearchController action=index status=500 error='ArgumentError: ArgumentError' duration=257.85 view=0.00 db=6.04  
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141]   
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] ArgumentError (ArgumentError):  
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141]   
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/lib/request.rb:23:in `initialize'  
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/helpers/jsonld_helper.rb:96:in `new'
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/helpers/jsonld_helper.rb:96:in `build_request'  
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/helpers/jsonld_helper.rb:67:in `fetch_resource_without_id_validation'
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/helpers/jsonld_helper.rb:62:in `fetch_resource'  
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/services/resolve_account_service.rb:204:in `actor_json'
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/services/resolve_account_service.rb:96:in `activitypub_ready?'  
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/services/resolve_account_service.rb:77:in `links_missing?'
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/services/resolve_account_service.rb:51:in `call'
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/services/account_search_service.rb:21:in `search_service_results'  
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/services/account_search_service.rb:12:in `call'
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/services/search_service.rb:26:in `perform_accounts_search!'  
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/services/search_service.rb:16:in `block in call'
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/services/search_service.rb:12:in `tap'  
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/services/search_service.rb:12:in `call'
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/controllers/api/v1/search_controller.rb:33:in `search_results'  
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/controllers/api/v1/search_controller.rb:21:in `search'
web_1        | [b80d916c-2cb0-419d-b8bf-26e27eb98141] app/controllers/api/v2/search_controller.rb:5:in `index'

Returns a 500 to the client