Everytime I ask an AI-persona read, list, analyze, what ever on category level it fails and I get this error:
backtrace
Message (11 copies reported)
Job exception: undefined method `where’ for an instance of Array
Backtrace
/var/www/discourse/lib/search.rb:585:in block in <class:Search>' /var/www/discourse/lib/search.rb:786:in
instance_exec’
/var/www/discourse/lib/search.rb:786:in block in apply_filters' /var/www/discourse/lib/search.rb:782:in
each’
/var/www/discourse/lib/search.rb:782:in apply_filters' /var/www/discourse/plugins/discourse-ai/lib/ai_bot/tools/search.rb:153:in
invoke’
/var/www/discourse/plugins/discourse-ai/lib/ai_bot/bot.rb:149:in invoke_tool' /var/www/discourse/plugins/discourse-ai/lib/ai_bot/bot.rb:110:in
process_tool’
/var/www/discourse/plugins/discourse-ai/lib/ai_bot/bot.rb:84:in block (2 levels) in reply' /var/www/discourse/plugins/discourse-ai/lib/ai_bot/bot.rb:83:in
each’
/var/www/discourse/plugins/discourse-ai/lib/ai_bot/bot.rb:83:in block in reply' /var/www/discourse/plugins/discourse-ai/lib/completions/endpoints/base.rb:280:in
block (2 levels) in perform_completion!’
/usr/local/lib/ruby/3.3.0/net/http.rb:2353:in block in transport_request' /usr/local/lib/ruby/3.3.0/net/http/response.rb:320:in
reading_body’
/usr/local/lib/ruby/3.3.0/net/http.rb:2352:in transport_request' /usr/local/lib/ruby/3.3.0/net/http.rb:2306:in
request’
/var/www/discourse/plugins/discourse-ai/lib/completions/endpoints/base.rb:122:in block in perform_completion!' /usr/local/lib/ruby/3.3.0/net/http.rb:1570:in
start’
/usr/local/lib/ruby/3.3.0/net/http.rb:1029:in start' /var/www/discourse/plugins/discourse-ai/lib/completions/endpoints/base.rb:105:in
perform_completion!’
/var/www/discourse/plugins/discourse-ai/lib/completions/llm.rb:279:in generate' /var/www/discourse/plugins/discourse-ai/lib/ai_bot/bot.rb:72:in
reply’
/var/www/discourse/plugins/discourse-ai/lib/ai_bot/playground.rb:426:in reply_to' /var/www/discourse/plugins/discourse-ai/app/jobs/regular/create_ai_reply.rb:18:in
execute’
/var/www/discourse/app/jobs/base.rb:305:in block (2 levels) in perform' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rails_multisite-6.0.0/lib/rails_multisite/connection_management/null_instance.rb:49:in
with_connection’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rails_multisite-6.0.0/lib/rails_multisite/connection_management.rb:21:in with_connection' /var/www/discourse/app/jobs/base.rb:292:in
block in perform’
/var/www/discourse/app/jobs/base.rb:288:in each' /var/www/discourse/app/jobs/base.rb:288:in
perform’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:202:in execute_job' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:170:in
block (2 levels) in process’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/middleware/chain.rb:177:in block in invoke' /var/www/discourse/lib/sidekiq/pausable.rb:132:in
call’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/middleware/chain.rb:179:in block in invoke' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/middleware/chain.rb:182:in
invoke’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:169:in block in process' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:136:in
block (6 levels) in dispatch’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/job_retry.rb:113:in local' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:135:in
block (5 levels) in dispatch’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq.rb:44:in block in <module:Sidekiq>' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:131:in
block (4 levels) in dispatch’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:263:in stats' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:126:in
block (3 levels) in dispatch’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/job_logger.rb:13:in call' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:125:in
block (2 levels) in dispatch’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/job_retry.rb:80:in global' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:124:in
block in dispatch’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/job_logger.rb:39:in prepare' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:123:in
dispatch’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:168:in process' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:78:in
process_one’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/processor.rb:68:in run' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/component.rb:8:in
watchdog’
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sidekiq-6.5.12/lib/sidekiq/component.rb:17:in `block in safe_thread’
Had I broken something, even I don’t do anything funny, or is something broken? This is quite recent issue and started yesterday — that isn’t totally sure, but I do such asks quite often.
edit
There is something strange going on. I tried could Chatbot do same thing just to be sure it is not coming from OpenAI and I got right away 429 You exceeded your current quota
.
No I didn’t, by theirs statistic. And there are money too. I got yesterday same error after my credit was zero, and even then I was wondering money was spend too fast. But money isn’t issue now.
Is it possible something is trying an re-trying too often and too fast hitting quota?