Skip to content

JSON read return error #9

@pmackay

Description

@pmackay

I've just downloaded this library and tested the simple "new_order" example. I get this:

/Library/Ruby/Gems/1.8/gems/json-1.7.5/lib/json/common.rb:155:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)
    from /Library/Ruby/Gems/1.8/gems/json-1.7.5/lib/json/common.rb:155:in `new'
    from /Library/Ruby/Gems/1.8/gems/json-1.7.5/lib/json/common.rb:155:in `parse'
    from /Library/Ruby/Gems/1.8/gems/ken-0.2.1/lib/ken/session.rb:146:in `get_query_response'
    from /Library/Ruby/Gems/1.8/gems/ken-0.2.1/lib/ken/session.rb:92:in `mqlread'
    from /Library/Ruby/Gems/1.8/gems/ken-0.2.1/lib/ken/resource.rb:23:in `get'
    from /Library/Ruby/Gems/1.8/gems/ken-0.2.1/lib/ken.rb:121:in `get'

It appears that the response is empty from Freebase.

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