Querying views with couchbase ruby client sometimes fails.
Description
Environment
Release Notes Description
Activity

Sergey Auseyau June 18, 2020 at 2:39 PM
Branch 1.3.x is not supported
All development goes on master branch (and 3.0.0 release coming soon)

Fernando January 20, 2015 at 1:31 AM
Ah sorry I forgot to add repo steps. Here is my specific case.
I was using the couchbase-ruby-model gem as well.
Repo Steps:
1.) From a rails app query a view with the couchbase ruby model gem. (Hit a rails controller action by hitting a valid url from the web browser)
2.) Wait several minutes. Ensure no additional requests to the server.
3.) Refresh the page.
4.) You should see the Couchbase::Error::Network error message in the rails log.

Todd Greenstein January 19, 2015 at 4:18 PM
Thank you for filing this issue. We are researching a repro and will update this as soon we have further information.

Fernando January 18, 2015 at 12:10 AMEdited
Seems like the connection is closed after a while of inactivity. If you make concurrent requests issue seems to go away.
I guess technically in production the connection would be open because you would have tons of requests? I see this in my dev box where I am the only one hitting the server.
Details
Assignee
Sergey AuseyauSergey AuseyauReporter
FernandoFernandoLabels
Affects versions
Priority
BlockerInstabug
Open Instabug
Details
Details
Assignee

Reporter

Labels
Affects versions
Priority
Instabug
Sentry
Linked Issues
Sentry
Linked Issues
Sentry
Zendesk Support
Linked Tickets
Zendesk Support
Linked Tickets
Zendesk Support

Expected: Querying a view from couchbase-ruby-client makes successful request.
Actual: Querying a view from couchbase-ruby-client sometimes fails making a successful request.
Not sure if related to fixes from: (Starting appearing after https://github.com/couchbase/couchbase-ruby-client/commit/9d8b6944982038dcf5d7dcc966c4e717033f1cf0 )
https://couchbasecloud.atlassian.net/browse/CCBC-546
-----------------------------------------------------
Stack Trace:
Couchbase::Error::Network (failed to execute HTTP request, Generic network failure. Enable detailed error codes (via LCB_CNTL_DETAILED_ERRCODES, or via `detailed_errcodes` in the connection string) and/or enable logging to get more information (key="_design/category/_view/by_language?connection_timeout=75000&wrapper_class=Category&key=%22eng%22", error=0x10)):
app/services/service/category/get_all.rb:13:in `get_categories'
app/services/service/category/get_all.rb:3:in `initialize'
app/controllers/categories_controller.rb:6:in `new'
app/controllers/categories_controller.rb:6:in `block (2 levels) in index'
app/controllers/categories_controller.rb:4:in `index'