Skip to content

record_count broken in Python 3 #47

@tomwwagstaff-product

Description

@tomwwagstaff-product

So I'm trying i.record_count("events") and I'm getting this error back:

AttributeError: 'HTTPMessage' object has no attribute 'headers'

The issue is line 632 in insightly.py:
return result.info().headers

which according to this post is deprecated in Python 3:

Python 3 Note First, there is nothing like response.info().headers, do a dict(response.info())

However, that doesn't work and despite Googling around, I can't find an alternative formulation that does...

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