Closed hlarubi closed 6 years ago
@hlarubi
what is the version of Cloudant?
Cloud Insurance was tested against Cloudant in public Bluemix.
The version reads as:
{
"couchdb": "Welcome",
"version": "2.0.0",
"vendor": {
"name": "IBM Cloudant",
"version": "5842",
"variant": "paas"
},
"features": [
"geo"
]
}
when connecting to the url provided by the VCAP_SERVICES.
@hlarubi
Looks like the Cloudant behavior has changed along the way. In recent versions (the one we support), it no longer throws an error if the index does not exist - the query is less performant but works.
To confirm the issue, you should be able to create from the dashboard an index on username
in the account
database.
Login and signup changed and this should be fixed.
Hi,
I got the apps deployed into a dedicated environment, but have issues with /signup and /login. It looks like the index in Cloudant didn't get created correctly, so the following errors are thrown by the app:
Signup: 2017-04-04T22:18:49.98-0700 [App/0] OUT Signup for: joe@gmail.com 2017-04-04T22:18:50.00-0700 [App/0] OUT There was an error registering the user: Error: There is no index available for this selector. 2017-04-04T22:18:50.00-0700 [App/0] OUT POST /signup 500 44.448 ms - 1750
Login: 2017-04-04T22:05:06.12-0700 [App/0] OUT GET /isLoggedIn 304 0.747 ms - - 2017-04-04T22:05:12.07-0700 [App/0] OUT Got login request 2017-04-04T22:05:12.14-0700 [App/0] OUT There was an error finding the user: Error: There is no index available for this selector. 2017-04-04T22:05:12.14-0700 [App/0] OUT POST /login 500 69.995 ms - 1750
What do I need to do to fix this? Thanks!