Skip to content

Unlogged visits parsing can cause issues #15

@johnmckerrell

Description

@johnmckerrell

We had a problem where the unlogged visits file was malformed and this caused the script to go into a cycle of erroring out. We need to add more checks. Basically if we read the file in and it's not false we assume that it has an array of users, we should actually check if that's true. Also later we assume if there is a user it has the correct format, again we should check that, around here:

402:      if $unloggedFile['user'].count > 0

and here:

440:          uri = URI.parse("https://docs.g......

Not sure about those line numbers as they don't seem to match what I was seeing on the doorbot but they match the copy of log cards I have locally.

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