Skip to content

TypeError: 'NoneType' object is not iterable #2106

@avloss

Description

@avloss

all_partitions = sorted(self._metadata.partitions_for_topic(topic))

Intermittently getting this issue - not sure what is going on - I'm intending for topics to be auto-created. So obviously they don't have partitions. Though it still manages to work overall somehow. Perhaps if I'm pushing one message, and the topic is being created, and doesn't yet have any partitions, then pushing second message to the same topic would produce this error. Very strange error, and I'm getting it a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions