Skip to content

Invalid JSON returned when using find and no entry exists #31

@DanielALS

Description

@DanielALS

I'm learning to build a DB, so my existing one is pretty empty.
When I try to find a resource which doesn't exist, I get a malformed response.

I'm using the Python Client (2.7.11)

import channelfinder
client = channelfinder.ChannelFinderClient()
# my default config is pickedup in my home dir
client.find(name="name_that_does_not_exist")

I had to fork and tweak the Python client, because all responses were assumed to be valid JSON serializable and they would just blow up. I created a separate method to encode into JSON and if it fails I get a warning. See shroffk/pyCFClient#1

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