You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 30, 2021. It is now read-only.
When trying to provision a new user, I'm receiving the following error:
2.2.4 :006 > ValidicClient.provision_user(uid: "adssad12k3")
NoMethodError: undefined method `each' for nil:NilClass
from /Users/diofeher/.rvm/gems/ruby-2.2.4/gems/validic-0.5.0/lib/validic/utils.rb:5:in `attributes_builder'
from /Users/diofeher/.rvm/gems/ruby-2.2.4/gems/validic-0.5.0/lib/validic/user.rb:5:in `initialize'
from /Users/diofeher/.rvm/gems/ruby-2.2.4/gems/validic-0.5.0/lib/validic/rest/users.rb:24:in `new'
from /Users/diofeher/.rvm/gems/ruby-2.2.4/gems/validic-0.5.0/lib/validic/rest/users.rb:24:in `provision_user'
Anyway, I'm having a different error today, I'm receiving a 409 when trying to create users with provision_user function, even if the uid doesn't exist at the database:
2.2.4 :008 > ValidicClient.provision_user(uid:"71asd")
Validic::Error::Conflict: 409:
from /Users/diofeher/.rvm/gems/ruby-2.2.4/gems/validic-0.5.0/lib/validic/rest/request.rb:90:in `request'
from /Users/diofeher/.rvm/gems/ruby-2.2.4/gems/validic-0.5.0/lib/validic/rest/request.rb:67:in `post'
from /Users/diofeher/.rvm/gems/ruby-2.2.4/gems/validic-0.5.0/lib/validic/rest/request.rb:27:in `post_request'
from /Users/diofeher/.rvm/gems/ruby-2.2.4/gems/validic-0.5.0/lib/validic/rest/users.rb:23:in `provision_user'
from (irb):8
from /Users/diofeher/.rvm/gems/ruby-2.2.4/gems/railties-4.2.5.1/lib/rails/commands/console.rb:110:in `start'
from /Users/diofeher/.rvm/gems/ruby-2.2.4/gems/railties-4.2.5.1/lib/rails/commands/console.rb:9:in `start'
Hi @diofeher - Thanks. You're likely hitting this error because you've exceeded the allowed users for a sandbox organization. The full JSON response should be:
{
"code": 409,
"message": "Your organization is limited to 25 users"
}
The gem should do a better job explicitly calling out that message though so I've added issue #39 to address that.
Activity
allcentury commentedon Aug 4, 2016
Hi @diofeher - I'm not sure if that's just a bad copy & paste regarding
ValidicClientbut it should look/work like this:diofeher commentedon Aug 8, 2016
Hello @allcentury, thanks for answering.
So ValidicClient is just a wrapper to:
Anyway, I'm having a different error today, I'm receiving a 409 when trying to create users with provision_user function, even if the uid doesn't exist at the database:
allcentury commentedon Aug 8, 2016
Hi @diofeher - Thanks. You're likely hitting this error because you've exceeded the allowed users for a sandbox organization. The full JSON response should be:
{ "code": 409, "message": "Your organization is limited to 25 users" }The gem should do a better job explicitly calling out that message though so I've added issue #39 to address that.
diofeher commentedon Aug 9, 2016
Thanks @allcentury !