I am using omnicontacts gem for retrieving mail contacts. I am able to use it for gmail but for yahoo I always get an error :-
"Custom port is not allowed or the host is not registered with this consumer key".
I am not specifying any custom port in my callback url. Also I have verified the domain in yahoo app but still getting the same error. Help please. I went through this link as well
OmniContacts gem always fail on with my yahoo contacts importes
My callback url is
http://www.domain-name/callback
where domain-name is my domain name.
and my routes file is as follows
Rails.application.routes.draw do
match "/contacts/:importer/callback" => "main#index", :via => [:get]
match "/oauth2callback" => "main#contact", :via => [:get]
match "/callback" => "main#contact", :via => [:get]
root 'main#index'
end
My controller code is as follows :-
class MainController < ApplicationController
def index
end
def contact
@contacts = request.env['omnicontacts.contacts']
respond_to do |format|
format.html
end
end
end
See if following links helps
OmniContacts gem always fail on with my yahoo contacts importes
https://developer.yahoo.com/forum/OAuth-General-Discussion-YDN-SDKs/Custom-port-is-not-allowed-or/1270167545000-b347dc6e-08c1-3fcc-b3cd-d6ff0fb6d734/