Skip to content

Creating AnalysisService error: 'NoneType' object has no attribute '__getitem__' #44

@toropok

Description

@toropok

Steps to reproduce

POSTing minimal required message for AS creation:

{
    "title": "title",
    "description": "",
    "portal_type": "AnalysisService",
    "parent_path": "/senaite/bika_setup/bika_analysisservices",
    "Keyword": "TEST_AS",
    "Category": <category uid>,
    "PointOfCapture": "lab"
}

Current behavior

returns error message:

{"_runtime": 0.6848359107971191, "message": "'NoneType' object has no attribute '__getitem__'", "success": false}

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

  1. More details in error message;
  2. Create AS properly

Screenshot (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions