-
Notifications
You must be signed in to change notification settings - Fork 21
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
Creating AnalysisService error: 'NoneType' object has no attribute '__getitem__' #44
Comments
we still digging it and figured out that this error comes from validation routine:
this call starts from validate_object() function in api.py:
and call DurationValidator in senaite.core/src/bika/lims/validators.py
we're creating dumb object which contains only keyword and title. Why it tries to validate duration field which never being passed there? maybe we're missing something? |
Has there been a solution for this? I am having the same issue where it returns that error message. However, it still creates the analysis service as "New Analysis Service" in the UI without the values I had in the payload. See the JSON payload I am sending below:
|
Steps to reproduce
POSTing minimal required message for AS creation:
Current behavior
returns error message:
The object seems to be created and can be accessed by direct URL, but not seen in AS folder.
If you open object by direct URL and press the save button - everything becomes fine and AS can be found in AS list
Expected behavior
Screenshot (optional)
The text was updated successfully, but these errors were encountered: