Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Backend - Engine
Minds Backend - Engine
  • Project overview
  • Repository
  • Issues 294
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 38
  • CI / CD
  • Security & Compliance
  • Packages
  • Wiki
  • Snippets
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds Backend - EngineMinds Backend - Engine
  • Issues
  • #1216

Closed
Open
Opened 12 minutes ago by Mark Harding@markeharding
Report abuse New issue

Hot feed not working

Steps to replicate

  • Go to https://www.minds.com/newsfeed/global/hot;period=12h;all=1

API Error

{"status":"error","message":"{\"error\":{\"root_cause\":[{\"type\":\"script_exception\",\"reason\":\"runtime error\",\"script_stack\":[\"age = 1575618281 - (doc['@timestamp'].value \/ 1000) - 1546300800;\\n\\n            def \",\"                                     ^---- HERE\"],\"script\":\"\\n            def up = doc['votes:up:12h'].value ?: 0;\\n            def down = doc['votes:down:12h'].value ?: 0;\\n\\n            def age = 1575618281 - (doc['@timestamp'].value \/ 1000) - 1546300800;\\n\\n            def votes = up - down;\\n            def sign = (votes > 0) ? 1 : (votes < 0 ? -1 : 0);\\n            def order = Math.log(Math.max(Math.abs(votes), 1));\\n\\n            return (sign * order) - (age \/ 43200);\\n        \",\"lang\":\"painless\"}],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[{\"shard\":0,\"index\":\"minds_badger\",\"node\":\"j_L53DseRqSq1no6YVc7QQ\",\"reason\":{\"type\":\"script_exception\",\"reason\":\"runtime error\",\"script_stack\":[\"age = 1575618281 - (doc['@timestamp'].value \/ 1000) - 1546300800;\\n\\n            def \",\"                                     ^---- HERE\"],\"script\":\"\\n            def up = doc['votes:up:12h'].value ?: 0;\\n            def down = doc['votes:down:12h'].value ?: 0;\\n\\n            def age = 1575618281 - (doc['@timestamp'].value \/ 1000) - 1546300800;\\n\\n            def votes = up - down;\\n            def sign = (votes > 0) ? 1 : (votes < 0 ? -1 : 0);\\n            def order = Math.log(Math.max(Math.abs(votes), 1));\\n\\n            return (sign * order) - (age \/ 43200);\\n        \",\"lang\":\"painless\",\"caused_by\":{\"type\":\"class_cast_exception\",\"reason\":\"Cannot apply [\/] operation to types [org.elasticsearch.script.JodaCompatibleZonedDateTime] and [java.lang.Integer].\"}}}]},\"status\":500}"}

Related issues
0

  • Discussion 0
  • Designs 0
  • Mark Harding @markeharding added Priority::0 - Urgent Product::Newsfeed Regression::Staging Type::Regression scoped labels 12 minutes ago

    added scoped labels

Please register or sign in to reply
Assignee
Emiliano Balbuena's avatar
Emiliano Balbuena @edgebal
none
Epic
None
None
Milestone
None
Time tracking
No estimate or time spent
None
Due date
None
4
Labels
Priority::0 - Urgent Product::Newsfeed Regression::Staging Type::Regression
None
Weight
None
Confidentiality
Not confidential
Lock issue
Unlocked
2
2 participants
user avatar
Emiliano Balbuena
user avatar
Mark Harding
Reference: minds/engine#1216