Skip to content

invalid user input: encountered the following errors: field <field id> was linked to section id '', but no section with this id exists #147

@sjudd

Description

@sjudd

Scenario & Reproduction Steps

I've created an empty entry in a vault. When I try to write to a new field in that entry with an empty section id, I get an error. I'd expect this to work:

my_item.fields.append(  
    ItemField(
        id="someid",
        title="some title",
        sectionId="",
        value=my_value,
        fieldType=ItemFieldType.CONCEALED,
        details=None,
    )
)
client.items.put(my_item)

Actual Behavior

It raises an error

Expected Behavior

In #144 you've said that "" is supposed to work. I've also seen it work previously and I can work around the issue by creating a field with an empty value but the same title that I'm trying to write to.

I also find the error messages here pretty confusing. I'm not really clear on what a section is in the UI or how to create one.

SDK version

0.1.16

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions