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

Http server throwing exceptions when viewing job files #123

Open
warownia1 opened this issue May 18, 2023 · 0 comments
Open

Http server throwing exceptions when viewing job files #123

warownia1 opened this issue May 18, 2023 · 0 comments
Labels
issue v0.8.4 Features and bugs in version 0.8.4

Comments

@warownia1
Copy link
Collaborator

Possibly caused when retrieving output for a job that hasn't been initialized yet. Not critical as the exception is handled by werkzeug but results in an unpleasant 500 Internal Server Error. If that's the case, checking for nulls before creating a Job object is a solution.

File "slivka/server/api_views.py", line 172, in job_files_view
    job = req.job
File "slivka/db/documents.py", line 124, in _get_job
    def _get_job(self): return JobRequest.Job(**self['job'])
TypeError: type object argument after ** must be a mapping, not NoneType
@warownia1 warownia1 added the v0.8.4 Features and bugs in version 0.8.4 label Feb 1, 2024
@warownia1 warownia1 moved this to Done in Slivka 0.8 release Apr 9, 2024
@warownia1 warownia1 moved this from Done to Ready to Merge in Slivka 0.8 release Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue v0.8.4 Features and bugs in version 0.8.4
Projects
Status: Ready to Merge
Development

No branches or pull requests

1 participant