Skip to content

AlchemyApi::UnknownError: Got an unknown error: invalid-url  #3

Description

@heaven

Getting this error when using get_categorization_from_html:

1.9.3p0 :003 > response = AlchemyApi::Categorization.get_categorization_from_html(rss.title)
DEPRECATED: Typhoeus::Request#user_agent=(value). This will be removed in a later version.
AlchemyApi::UnknownError: Got an unknown error: invalid-url
        from /home/heaven/.rvm/gems/ruby-1.9.3-p0-falcon@crm/gems/alchemy_api-0.1.2/lib/alchemy_api/base.rb:34:in `check_json_for_errors_and_raise!'
        from /home/heaven/.rvm/gems/ruby-1.9.3-p0-falcon@crm/gems/alchemy_api-0.1.2/lib/alchemy_api/base.rb:12:in `get_json'
        from /home/heaven/.rvm/gems/ruby-1.9.3-p0-falcon@crm/gems/alchemy_api-0.1.2/lib/alchemy_api/categorization.rb:39:in `get_categorization_handler'
        from /home/heaven/.rvm/gems/ruby-1.9.3-p0-falcon@crm/gems/alchemy_api-0.1.2/lib/alchemy_api/categorization.rb:34:in `block (2 levels) in <class:Categorization>'
        from /home/heaven/.rvm/gems/ruby-1.9.3-p0-falcon@crm/gems/monster_mash-0.3.0/lib/monster_mash/base.rb:102:in `call'
        from /home/heaven/.rvm/gems/ruby-1.9.3-p0-falcon@crm/gems/monster_mash-0.3.0/lib/monster_mash/base.rb:102:in `execute'
        from /home/heaven/.rvm/gems/ruby-1.9.3-p0-falcon@crm/gems/monster_mash-0.3.0/lib/monster_mash/base.rb:65:in `block (2 levels) in build_method'
        from (irb):3
        from /home/heaven/.rvm/gems/ruby-1.9.3-p0-falcon@crm/gems/railties-3.1.3/lib/rails/commands/console.rb:45:in `start'
        from /home/heaven/.rvm/gems/ruby-1.9.3-p0-falcon@crm/gems/railties-3.1.3/lib/rails/commands/console.rb:8:in `start'
        from /home/heaven/.rvm/gems/ruby-1.9.3-p0-falcon@crm/gems/railties-3.1.3/lib/rails/commands.rb:40:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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