Let me guess cesar, are the fields you are getting these errors on not indexed?
- Houston On Thu, Mar 30, 2023 at 10:51 AM Cesar Delgado <beett...@gmail.com> wrote: > I’m getting a strange error when trying to index some documents. Solr is > telling me the document is missing a filed when it doesn’t seem to be. > > Solr error: > {'error': {'metadata': ['error-class', > 'org.apache.solr.common.SolrException', 'root-error-class', > 'org.apache.solr.common.SolrException'], 'msg': '[doc=null] missing > required field: account_acct', 'code': 400}} : > > JSON being sent : > {'add': {'doc': {'created_at': '2023-03-26T21:44:00.000Z', 'edited_at': > None, 'favourites_count': 0, 'id': 'AU1JwxeZAe5IbwzC76', > 'in_reply_to_account_id': 'AJaIwDfMawY8DiOjrM', 'in_reply_to_id': > 'AU1JwxWPexYwCfAgPA', 'language': None, 'pleroma': {'content': > {'text/plain': '@hanmyoucache :hpexpectopatronum: 去說 is chosen from > 去說不去說'}, 'context': > 'tag:o3o.ca,2023-03-26:objectId=46494613:objectType=Conversation', > 'conversation_id': 1573060705, 'direct_conversation_id': None, > 'emoji_reactions': [], 'expires_at': None, 'in_reply_to_account_acct': ' > hanmyouca...@o3o.ca', 'local': False, 'parent_visible': True, > 'pinned_at': None, 'spoiler_text': {'text/plain': ''}, 'thread_muted': > False}, 'reblogs_count': 0, 'replies_count': 0, 'sensitive': False, > 'spoiler_text': '', 'text': None, 'uri': ' > https://onlycasino.legal/users/fatelab/statuses/110091766387251927', > 'url': 'https://onlycasino.legal/@fatelab/110091766387251927', > 'visibility': 'public', 'account_id': 'AG6IaEINkqwPC6G7kW', > 'account_username': ['@fatelab', 'fatelab'], 'account_acct': > ['@fatelab@onlycasino.legal', 'fatelab@onlycasino.legal'], 'website': > 'onlycasino.legal', 'urls': ['https://o3o.ca/@hanmyoucache'], 'content': > '@hanmyoucache :hpexpectopatronum:\n\n去說\n\nis chosen from\n\n去說 > \n不去說\n\n'}}} > > There’s nothing strange in the logs, just the same error I’m getting the > client. Does anyone have any ideas on what might be going on? What is the > best way to try and debug this? > > Many thanks, > > -Cesar