Closed agrieser closed 12 years ago
@agrieser not sure why you're getting that error. In the project type in racksh, that will launch an app console with the envrioment properly loaded. Inspect HALLON_SESSION.container.contents . It should yield a Hallon:PlaylistsContrainer::Contents object which basically represents the Spotify user's playlist objects. HALLON_SESSION.container.loaded? also yields true for me. Not sure why your session is not being initialized properly. You can also try the code in the console manually to see what the problem might be:
HALLON_SESSION = Hallon::Session.initialize IO.read(ENV['HALLON_APPKEY']) do
on(:log_message) do |message|
puts "[LOG] #{message}"
end
end
HALLON_SESSION.login!(ENV['HALLON_USERNAME'], ENV['HALLON_PASSWORD'])
I receive an error when loading the root page.
Trying to debug this, the HALLON_SESSION.container object responds to "loaded?" with false.
Log messages: