Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RestClient::Unauthorized (401 Unauthorized): #170

Open
diatmpravin opened this issue Aug 30, 2013 · 1 comment
Open

RestClient::Unauthorized (401 Unauthorized): #170

diatmpravin opened this issue Aug 30, 2013 · 1 comment

Comments

@diatmpravin
Copy link

It's able to insert data to database but getting Error when fetching(User.all) all data. Below are the couchdbrest_model logs

Parameters: {"utf8"=>"✓", "authenticity_token"=>"/7T8taowi7kGoI+Kt84FP7c6Ghq66TmyRqJVfZBdNCI=", "user"=>{"name"=>"Pravin Mishra", "email"=>"[email protected]", "desc"=>"I am here..!!!"}, "x"=>"90", "y"=>"22"}
Redirected to http://localhost:3000/users
Completed 302 Found in 41ms

@diatmpravin
Copy link
Author

couchrest_model logs.

Database details --> #<CouchRest::Database:0x00000004a84478 @name="demodb", @server=#<CouchRest::Server:0x00000004a42708 @uri="http://pravin:asdf@xxxxxxxx:5984", @uuid_batch_count=1000>, @host="http://pravin:asdf@xxxxxxxx:5984", @uri="/demodb", @root="http://pravin:asdf@xxxxxxxx:5984/demodb", @streamer=#<CouchRest::Streamer:0x00000004a428e8 @default_curl_opts="--silent --no-buffer --tcp-nodelay -H "Content-Type: application/json"">, @bulk_save_cache=[], @bulk_save_cache_limit=500>

Started GET "/users" for 127.0.0.1 at 2013-08-30 14:18:52 +0530
Processing by UsersController#index as HTML
Completed 500 Internal Server Error in 44ms

RestClient::Unauthorized (401 Unauthorized):
app/controllers/users_controller.rb:5:in `index'

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

No branches or pull requests

1 participant