Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@flatfile/plugin-export-workbook - Failure to fetch records does not terminate job and unclear on cause of failure #186

Open
colinfrederickson opened this issue Aug 17, 2023 · 0 comments

Comments

@colinfrederickson
Copy link
Contributor

colinfrederickson commented Aug 17, 2023

Issue Description:

When using the @flatfile/plugin-export-workbook, I encountered an issue where the job does not terminate even after a fatal error occurs. Specifically, the plugin failed to fetch records for a particular sheet but continued executing without providing a clear reason for the failure. The job continued to be stuck at 10% in the UI.

Steps to Reproduce:

Set up the Flatfile environment and use the exportWorkbookPlugin with the debug option set to true.
Start the job to export the workbook.
Observe the logs for any fatal errors.

Note: This was encountered when introducing the plug-in to this configuration.

Expected Behavior:

If there is a failure when fetching records, the job should:

Terminate immediately.
Provide a clear and detailed error message indicating the reason for the failure.

Actual Behavior:

The job continued running even after a fatal error occurred. The error message provided was:
[@flatfile/plugin-export-workbook]:[FATAL] Failed to fetch records for sheet with id: us_sh_xiSwowlF
However, there was no clarity on the cause of the failure.

Logs:

[@flatfile/plugin-export-workbook]:[INFO] Sheets found in Flatfile workbook:
'Worker Data' (us_sh_1dAkNW5r)
'Supervisory Orgs' (us_sh_1c2eRav2)
'Companies' (us_sh_xiSwowlF)
'Locations' (us_sh_JYODHJRD)
'Cost Centers' (us_sh_WTpPEkX2)
'Job Codes' (us_sh_BCYFBYu6)
▶ job:updated 11:57:58.146 AM us_evt_w1zYT75xTsDFsZFW
↳ on(**, {})
-> My event listener received an event: "job:updated"
[@flatfile/plugin-export-workbook]:[FATAL] Failed to fetch records for sheet with id: us_sh_xiSwowlF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants