-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
[BUG] 400 Bad Request when working with a larger BOM #2568
Comments
Welcome to InvenTree! Please check the contributing docs on how to help.\nIf you experience setup / install issues please read all install docs. |
Following, I'm having the same issue on bare metal installation with 142 lines BOM |
Hi there this is loosely connected to #2331 and being worked on. If you want to increase the number of possible fields increase the setting. This might open you up increased risk of DDOS attacks, so please do not do this if you expose your instance to the web directly. |
@alexisvl as this is a security concern, the error code is as general as possible. The message would appear in the logs if the verbosity level of the logs is set lower. Some background for this setting is provided here: |
@matmair Can we make it a higher number by default? |
@eeintech I do not recommend that due to security risks loading that much multiform. I am refactoring rn, it is a bit trickier than thought, might start over. |
Thank you for your contribution, I figured out a quicker way would be to make a python script to push those automatically one by one using the API, doesn't have a limit and works pretty well. |
@Zontex the rewrite is already on the roadmap but glad you found a way to get it going that fast! |
Describe the bug
"Bad Request (400)" when trying to upload a BOM with 100 lines. (At least, I think it's size-related).
Steps to Reproduce
Steps to reproduce the behavior:
I can share the CSV but not sure how much use that'd be without the matching part database.
Expected behavior
The BOM is uploaded.
Instead, I get a "Bad Request (400)".
If the server is run in the foreground, I get
It feels like the issue is obvious -
DATA_UPLOAD_MAX_NUMBER_FIELDS
needs to be increased - but I don't even know where to find it. I'm not a sysadmin I just want to track inventory lolFrankly I think this is two bugs. There is no context delivered with this 400 bad request, and no errors are logged to the admin interface. Without running the server in the foreground there is zero feedback. There seems to be a huge chunk of error reporting tooling that is missing.
Deployment Method
Version Information
InvenTree-Version: 0.5.4
Django Version: 3.2.5
Commit Hash: 66a08fe
Commit Date: 2021-11-03
Database: postgresql
Debug-Mode: False
Deployed using Docker: True
The text was updated successfully, but these errors were encountered: