Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Camera Not Found (Dropcam::CameraNotFoundError) #7

Closed
radekw opened this issue Feb 25, 2015 · 4 comments
Closed

Camera Not Found (Dropcam::CameraNotFoundError) #7

radekw opened this issue Feb 25, 2015 · 4 comments

Comments

@radekw
Copy link
Contributor

radekw commented Feb 25, 2015

Few days ago I noticed the library stopped working and fails with the following error on login.

irb(main):001:0> require 'dropcam'
=> true
irb(main):002:0> dropcam = Dropcam::Dropcam.new("", "")
Dropcam::CameraNotFoundError: Camera Not Found
    from /Library/Ruby/Gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam/base.rb:108:in `get'
    from /Library/Ruby/Gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam/session.rb:37:in `_session_token'
    from /Library/Ruby/Gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam/session.rb:26:in `authenticate'
    from /Library/Ruby/Gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam.rb:11:in `initialize'
    from (irb):2:in `new'
    from (irb):2
    from /usr/bin/irb:12:in `<main>'
@radekw
Copy link
Contributor Author

radekw commented Feb 25, 2015

/api/v1/users.get_session_token returns 404.

@radekw
Copy link
Contributor Author

radekw commented Feb 26, 2015

Session token is passed in response body from login request

{"status": 0, "items": [{"migrated_to_nest": false, "allow_migration_to_nest": false, "nest_access_token": null, "session_token": "d2...d2"}], "status_description": "ok", "status_detail": ""}

@radekw
Copy link
Contributor Author

radekw commented Feb 26, 2015

Here's a fix:
#9

@nolanbrown
Copy link
Owner

Thanks Radek. I've merged your change in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants