Open dleadbetter opened 1 month ago
The following error occurred attempting to index documents in Core Data.
heroku run -a core-data-cloud-staging "bundle exec rake typesense:index -- -h i74olkjcuy69ze2vp-1.a1.typesense.net -p 443 -r https -a 8cHJwrma4IQNb9fpPaxGC9SimtBIJyWU -c sjp_documents -m 228"
rake aborted! NoMethodError: undefined method `name' for #<CoreDataConnector::Person id: 158806, biography: nil, created_at: "2024-09-10 14:29:31.136186000 +0000", updated_at: "2024-09-10 14:29:31.136186000 +0000", project_model_id: 245, user_defined: {}, z_person_id: nil, uuid: "58823867-7118-44ed-bc34-b8b2e411ef4d"> /app/vendor/bundle/ruby/3.2.0/gems/activemodel-7.0.7/lib/active_model/attribute_methods.rb:450:in `method_missing' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/app/services/core_data_connector/search/base.rb:327:in `block in to_search_json' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/app/services/core_data_connector/search/base.rb:320:in `each' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/app/services/core_data_connector/search/base.rb:320:in `to_search_json' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/app/services/core_data_connector/search/base.rb:442:in `build_relationship' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/app/services/core_data_connector/search/base.rb:453:in `block in build_relationships' /app/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/relation/delegation.rb:88:in `each' /app/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/relation/delegation.rb:88:in `each' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/app/services/core_data_connector/search/base.rb:453:in `build_relationships' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/app/services/core_data_connector/search/base.rb:347:in `to_search_json' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/lib/typesense/helper.rb:80:in `block (3 levels) in index' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/lib/typesense/helper.rb:80:in `map' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/lib/typesense/helper.rb:80:in `block (2 levels) in index' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/app/services/core_data_connector/search/base.rb:197:in `block in for_search' /app/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/relation/batches.rb:138:in `block in find_in_batches' /app/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/relation/batches.rb:245:in `block in in_batches' /app/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/relation/batches.rb:229:in `loop' /app/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/relation/batches.rb:229:in `in_batches' /app/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/relation/batches.rb:137:in `find_in_batches' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/app/services/core_data_connector/search/base.rb:192:in `for_search' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/lib/typesense/helper.rb:79:in `block in index' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/lib/typesense/helper.rb:75:in `each' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/lib/typesense/helper.rb:75:in `index' /app/vendor/bundle/ruby/3.2.0/bundler/gems/core-data-connector-bba7958ff763/lib/tasks/typesense.rake:58:in `block (2 levels) in <main>' /app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/lib/bundler/cli/exec.rb:58:in `load' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/lib/bundler/cli/exec.rb:58:in `kernel_load' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/lib/bundler/cli/exec.rb:23:in `run' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/lib/bundler/cli.rb:451:in `exec' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/lib/bundler/cli.rb:34:in `dispatch' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/lib/bundler/cli.rb:28:in `start' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/exe/bundle:28:in `block in <top (required)>' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors' /app/vendor/bundle/ruby/3.2.0/gems/bundler-2.5.6/exe/bundle:20:in `<top (required)>' /app/bin/bundle:113:in `load' /app/bin/bundle:113:in `<main>' Tasks: TOP => typesense:index
The following error occurred attempting to index documents in Core Data.