500 error when create new user api 2.1

Hey guys,

My code started to return 500 error:

$this->dirCreate('/users/' . $username . '/'); // 200 OK response i tested
$data['username'] = $username;
$data['name']     = $username;
$data['role']     = 'User';
$data['email']    = $email;
$data['password'] = $password;
$data['home']     = '/users/' . $username . '/';
// $data array correct , home dir created success
$response = $this->api->post('/user/', $data) // 500 response:

response return me this:

{"detail": "An error has occurred and our team has been notified. If you need assistance, contact your administrator."}

This code work correctly before.

Please help

2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • I downloaded your latest php sdk, set my api key and login,

    than run /example/user.php and have the same issue:

    Caught exception: An error has occurred and our team has been notified. If you need assistance, contact your administrator.
    
    Reply Like
  • Are you by chance on a free developer account? A free developer account only includes one user. Further information about developer pricing and quotas is located here: https://www.smartfile.com/pricing/#dev-pricing

    I'll see if I can't update it to return a 402 rather than a 500.

    Reply Like
Like Follow
  • 4 yrs agoLast active
  • 2Replies
  • 635Views
  • 2 Following