Check your Twitter application's settings. Your App's callback URL cannot be empty. (It can be any valid URL.)