forked from ontoportal/ontologies_api
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I have merged the coede for the ontology admin endpoint feature: #196
But when i call POST ontologies_report to generate the report it's showing an error
172.19.0.1 - admin [19/Dec/2025:16:30:41 +0000] "POST /admin/ontologies_report HTTP/1.1" 200 45 0.0344
/srv/ontoportal/ontologies_api/helpers/application_helper.rb:468:in `block in process_long_operation': undefined method `empty?' for #<File:/srv/ontoportal/bundle/ruby/3.1.0/bundler/gems/ncbo_cron-2eb5cfd12e6e/logs/scheduler-ontologies-report.log> (NoMethodError)
redis.setex process_id, timeout, MultiJson.dump(result.empty? ? "done" : result)
^^^^^^^
from /srv/ontoportal/ontologies_api/helpers/application_helper.rb:474:in `block in process_long_operation'
from /srv/ontoportal/ontologies_api/helpers/application_helper.rb:474:in `fork'
from /srv/ontoportal/ontologies_api/helpers/application_helper.rb:474:in `process_long_operation'
from /srv/ontoportal/ontologies_api/controllers/admin_controller.rb:99:in `block (2 levels) in <class:AdminController>'
from /srv/ontoportal/bundle/ruby/3.1.0/gems/sinatra-4.1.1/lib/sinatra/base.rb:1807:in `call'
from /srv/ontoportal/bundle/ruby/3.1.0/gems/sinatra-4.1.1/lib/sinatra/base.rb:1807:in `block in compile!'
from /srv/ontoportal/bundle/ruby/3.1.0/gems/sinatra-4.1.1/lib/sinatra/base.rb:1074:in `block (3 levels) in route!'
The problem is in the process_long_operation method in the application_helper
Metadata
Metadata
Assignees
Labels
No labels