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

[HOW?] Could not convert to °C or mm #193

Closed
Nudelsalad opened this issue Dec 6, 2023 · 2 comments
Closed

[HOW?] Could not convert to °C or mm #193

Nudelsalad opened this issue Dec 6, 2023 · 2 comments

Comments

@Nudelsalad
Copy link

I tried setting up kintree with a fresh install of inventree and used the default setting. I don't know if it is related to #97 but my part fetched from digikey gets halfway created with this error:

requests.exceptions.HTTPError: {'detail': 'Error occurred during API request', 'url':
https://inventree.example.de/api/part/parameter/', 'method': 'POST', 'status_code': 400, 'body': '{"data":["Could not convert - to
°C"]}', 'headers': {'AUTHORIZATION': 'Token inv-**********************-20231205'}, 'params': {'format': 'json'}, 'data': {'part': 7,
'template': 50, 'data': '-'}}

Same issue with the parameter field size if it receives the size from digikey e.g.: 1.2x3.4mm ->(could not convert to mm)
What am I doing wrong here since I am new to Kintree I guess its a setup failure.
Your Readme explains that it is possible to use the fallback default settings for categories.yaml. I initialized my inventree instance with all your categories but somehow I got stuck here.
Appreciate any help, thanks

@T0jan
Copy link
Collaborator

T0jan commented Dec 7, 2023

Do you have the latest InvenTree version (0.12.10) running on your server? In some of the earlier version there were checks implemented which explicitly failed if parameter values were not numbers, see #165 for more details on that.

@Nudelsalad
Copy link
Author

I am currently running 0.13.0 the latest version.

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