Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P
purescript-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 140
    • Issues 140
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • purescript-gargantext
  • Issues
  • #595

Closed
Open
Opened Aug 21, 2023 by Alfredo Di Napoli@AlfredoDiNapoli
  • Report abuse
  • New issue
Report abuse New issue

Error when polling for progress completes

In the frontend, we poll the status of an async job by repeatedly calling endpoints like /api/v1.0/corpus/155/query/:id/poll to show the progress bar for a particular task.

While working on haskell-gargantext#258 (closed) I have noticed that when the backend completes a job (i.e. the relevant async job is removed from the queue) the frontend emits this error:

Screenshot_2023-08-21_at_12.02.36

This probably happens because now the communication socket has been closed on the server side, but the frontend should catch this scenario and ignore the error (or log it to the console as a warning) rather than spitting it in users' face.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gargantext/purescript-gargantext#595