Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DanielALS opened this issue May 20, 2019 · 0 comments
Open

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

DanielALS opened this issue May 20, 2019 · 0 comments

Comments

@DanielALS
Copy link

DanielALS commented May 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant