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

AttributeError: 'NoneType' object has no attribute 'file' in job_files API #18148

Open
galaxyproject-sentryintegration bot opened this issue May 14, 2024 · 0 comments

Comments

@galaxyproject-sentryintegration
Copy link

galaxyproject-sentryintegration bot commented May 14, 2024

We should probably fail with RequestParameterInvalid in this case (or figure out what we need to do if there is actually attached form data)

Sentry Issue: GALAXY-MAIN-YB5

AttributeError: 'NoneType' object has no attribute 'file'
  File "galaxy/web/framework/decorators.py", line 346, in decorator
    rval = func(self, trans, *args, **kwargs)
  File "galaxy/webapps/galaxy/api/job_files.py", line 117, in create
    input_file = payload.get("file", payload.get("__file", None)).file

Uncaught exception in exposed API method:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants