Giter VIP home page Giter VIP logo

Comments (12)

ufuf avatar ufuf commented on June 23, 2024 1

@ssh24 Thanks for the info. So I will wait for the product bugfix :)
Thanks for your help.

from loopback-connector-cloudant.

jannyHou avatar jannyHou commented on June 23, 2024

I believe it's same as #68
@ufuf PTAL. Thanks.

from loopback-connector-cloudant.

ssh24 avatar ssh24 commented on June 23, 2024

@ufuf When you have another user that does not have the admin role, but has some sort of read, create, etc... permission on the database, you can use the CLOUDANT_URL env variable to set the url or set the url on the datasource config as well. For more information, please read the docs on how to use url vs username vs password.

Closing this issue, feel free to reopen if you have any questions.

from loopback-connector-cloudant.

ufuf avatar ufuf commented on June 23, 2024

@ssh24 I updated the connectors but still getting the error.
My configuration is [email protected], [email protected], [email protected]
And my config is attached.
screen shot 2017-06-06 at 20 33 01

from loopback-connector-cloudant.

ssh24 avatar ssh24 commented on June 23, 2024

Sorry, @ufuf I thought the fix was already in 1.x. Reopening this issue and backporting the fix. Thank you for your patience.

from loopback-connector-cloudant.

ssh24 avatar ssh24 commented on June 23, 2024

@ufuf Ignore my previous comment. Tried reproducing and the fix is already in 1.x.

Did you check the _admin role for the user you are giving the access to? Please check off the _admin role and try again.

Closing this issue in this case. Feel free to reopen if you have any questions.

from loopback-connector-cloudant.

ufuf avatar ufuf commented on June 23, 2024

@ssh24 it seems off. My permissions screen is like this:
screen shot 2017-06-08 at 13 11 19

from loopback-connector-cloudant.

ssh24 avatar ssh24 commented on June 23, 2024

@ufuf You need to check off the _admin role to the user in blue.

from loopback-connector-cloudant.

ufuf avatar ufuf commented on June 23, 2024

@ssh24 it is already off. only reader and writer attributes are selected.

from loopback-connector-cloudant.

ssh24 avatar ssh24 commented on June 23, 2024

Sorry, I meant to check it on.

from loopback-connector-cloudant.

ufuf avatar ufuf commented on June 23, 2024

I checked it on. Right now all the checkboxes are selected. But in Api Designer I am still getting error while trying to connect.
screen shot 2017-06-08 at 14 17 08

from loopback-connector-cloudant.

ssh24 avatar ssh24 commented on June 23, 2024

@ufuf I can reproduce the above issue. But it is a apic bug rather than cloudant. I will file a bug in apic end to get this looked into asap.

In order to know it is not a cloudant bug, you can create a boot script and run it. It works with the custom user with _admin privileges.

/server/boot/script.js

'use strict';
var async = require('async');
var _ = require('lodash');
var util = require('util');

module.exports = function(app) {
  var db = app.dataSources.cloudantDS;
  var Car = app.models.Car;

  db.automigrate(function(err) {
    if (err) throw err;
    Car.create([{Model: 'Toyota', Year: 2005}, {Model: 'Audi', Year: 2014}],
  function(err, result) {
    if (err) throw err;
    console.log('Create: ' + JSON.stringify(result));
  });
  });
};

Hope this helps you.

Also, thank you for helping us finding a bug on the product side. :)

from loopback-connector-cloudant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.