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

Failing in updating part #255

Closed
simoneamadori opened this issue Sep 11, 2024 · 2 comments
Closed

Failing in updating part #255

simoneamadori opened this issue Sep 11, 2024 · 2 comments

Comments

@simoneamadori
Copy link

While using the update existing function it gives me this error :

←[92m[TREE] Successfully connected to InvenTree server (ENV=DEVELOPMENT)←[0m ←[95m [MAIN] Searching for original part in database←[0m ←[92m[INFO] Success: Found original part in database (ID = 219 | Description = "FUSE BOARD MOUNT 62MA 63VDC 0603")←[0m ←[93m[INFO] Warning: The following parameters were not found in supplier data: ['Package / Case', 'Operating Temperature', 'Voltage - Breakdown (Min)', 'Capacitance @ Frequency', 'Voltage - Clamping (Max) @ Ipp', 'Current Rating (Amps)', 'Current - Max', 'Power - Peak Pulse', 'Voltage Rating - DC', 'Voltage - Max', 'Voltage - Reverse Standoff (Typ)']←[0m [INFO] The following parameters are not mapped in Mouser parameters configuration: ['Packaging', 'Standard Pack Qty'] ←[95m [MAIN] Creating parameters←[0m ←[93m[TREE] Warning: The following parameters were skipped:←[0m ---> Value ---> Package Type ---> Temperature Range ---> Breakdown Voltage ---> Capacitance ---> Clamping Voltage ---> Rated Current ---> Rated Power ---> Rated Voltage ---> Standoff Voltage Future exception was never retrieved future: <Future finished exception=HTTPError({'detail': 'Error occurred during API request', 'url': 'http://192.168.10.18:1337/api/part/attachment/', 'method': 'GET', 'status_code': 404, 'body': '{"detail": "API endpoint not found", "url": "http://192.168.10.18:1337/api/part/attachment/?part=219"}', 'headers': {'AUTHORIZATION': 'Token inv-cc1fb180f2cebf58c4fb8e027ad99a140bea8d40-20240528'}, 'params': {'part': 219}})> Traceback (most recent call last): File "C:\Users\simone.amadori\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\simone.amadori\AppData\Local\Programs\Python\Python311\Lib\site-packages\flet_core\page.py", line 941, in wrapper handler(*args) File "C:\Users\simone.amadori\AppData\Local\Programs\Python\Python311\Lib\site-packages\kintree\gui\views\main.py", line 1400, in create_part alt_result = inventree_interface.inventree_create_alternate( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\simone.amadori\AppData\Local\Programs\Python\Python311\Lib\site-packages\kintree\database\inventree_interface.py", line 864, in inventree_create_alternate attachment = part.getAttachments() ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\simone.amadori\AppData\Local\Programs\Python\Python311\Lib\site-packages\inventree\base.py", line 496, in getAttachments return AttachmentSubClass.list( ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\simone.amadori\AppData\Local\Programs\Python\Python311\Lib\site-packages\inventree\base.py", line 228, in list response = api.get(url=url, params=kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\simone.amadori\AppData\Local\Programs\Python\Python311\Lib\site-packages\inventree\api.py", line 530, in get response = self.request(url, method='get', **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\simone.amadori\AppData\Local\Programs\Python\Python311\Lib\site-packages\inventree\api.py", line 378, in request raise requests.exceptions.HTTPError(detail) requests.exceptions.HTTPError: {'detail': 'Error occurred during API request', 'url': 'http://192.168.10.18:1337/api/part/attachment/', 'method': 'GET', 'status_code': 404, 'body': '{"detail": "API endpoint not found", "url": "http://192.168.10.18:1337/api/part/attachment/?part=219"}', 'headers': {'AUTHORIZATION': 'Token inv-cc1fb180f2cebf58c4fb8e027ad99a140bea8d40-20240528'}, 'params': {'part': 219}}

System & software version:

Version Information:
InvenTree-Version: 0.16.1
Django Version: 4.2.15
Commit Hash: 4c15e5c
Commit Date: 2024-08-30

Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-5.15.0-119-generic-x86_64-with
Installer: DOC

Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.1.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.1.0'}, {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'}, {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'}, {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'}, {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'}, {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'}, {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'}, {'name': 'KiCadLibraryPlugin', 'slug': 'kicad-library-plugin', 'version': '1.4.3'}]

Ki-nTree version 1.1.3

@simoneamadori
Copy link
Author

Resolved updating the inventree package from 0.14.0 to 0.17.0

@eeintech
Copy link
Contributor

@simoneamadori Correct, I do need to update the inventree distrib I'm using locally to be able to test new InvenTree versions, InvenTree is not keeping up😕

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