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

Fix Event Log Error Processing #80

Open
joannekoch opened this issue Apr 20, 2023 · 0 comments
Open

Fix Event Log Error Processing #80

joannekoch opened this issue Apr 20, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@joannekoch
Copy link
Contributor

ar16 has a missing elog file - an empty csv file is generated and no error is thrown.

ar61a has an erroneous character in its elog file and cannot be parsed. This error is displayed: Not Found: /api/nut/ar61a which is not the correct error.

in parse_elog change read_csv to:
try:
df = pd.read_csv(elog_path, dtype={
CAST: str
})
except Exception as e:
raise ValueError('event log file cannot be parsed {}'.format(elog_path))

in workflow_response change to:
filename = workflow.filename()
try:
df = workflow.get_product()
return dataframe_response(df, filename, extension)
except DataNotFound as e:
raise Http404(str(e))
except ValueError as e:
raise Http404(str(e))
except Exception as e:
raise Http404(str(e))

@joannekoch joannekoch added the bug Something isn't working label Apr 20, 2023
@joannekoch joannekoch self-assigned this Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant