I have a self-hosted setup of typesense running in...
# community-help
k
I have a self-hosted setup of typesense running in docker... I am trying to set it up for use with hudu The hudu docs are at: https://support.hudu.com/hc/en-us/articles/34190197976983-How-to-Install-and-Run-Typesense-with-Docker-and-Connect-It-to-Hudu#h_01K9562[…]4VAFNZ84C0 I can get hudu connected, but as soon as I try to run an index, I get "Reindex failed: Document tree depth limit exceeded" I am new to typesense... so trying to determine what I am missing and where to look 🙂
j
I recognize "Document tree depth limit exceeded" from Nokogiri (Ruby's HTML parser) actually, might not be from Typesense itself. This could happen if Hudu is tying to process heavily nested HTML content (eg: copy-pasted Word docs or web pages) in order to index it. If that's the case, checking your Hudu app container logs during a reindex should point to the offending document. The Nokogiri HTML5 docs mention there are options to remove the limit too. I'm new to Hudu though myself, so not sure how you'd feed it through to Nokogiri 😅
k
Thanks, @Jonathan King - I've now tried with a cloud hosted typesense account... still getting the same error.... pinged hudu support in the meantime
sure enough... nokogiri is at play....
🙌 1
ERROR -- : [ActiveJob] [TypesenseReindexJob] Error details: ArgumentError - Document tree depth limit exceeded /usr/local/bundle/gems/nokogiri-1.18.10-x86_64-linux-gnu/lib/nokogiri/html5/document_fragment.rb166in 'Nokogiri::Gumbo.fragment' /usr/local/bundle/gems/nokogiri-1.18.10-x86_64-linux-gnu/lib/nokogiri/html5/document_fragment.rb166in 'Nokogiri:HTML5:DocumentFragment#initialize' /usr/local/bundle/gems/nokogiri-1.18.10-x86_64-linux-gnu/lib/nokogiri/xml/document_fragment.rb44in 'Nokogiri:XML:DocumentFragment.new'