Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Creating User #43

Open
axellfumioo opened this issue Feb 25, 2023 · 1 comment
Open

Error Creating User #43

axellfumioo opened this issue Feb 25, 2023 · 1 comment

Comments

@axellfumioo
Copy link

Fatal error: Uncaught HCGCloud\Pterodactyl\Exceptions\ValidationException: The given data failed to pass validation. in D:\**\php\database\vendor\hcgcloud\pterodactyl-sdk\src\MakesHttpRequests.php:117 Stack trace: #0 D:\**\php\database\vendor\hcgcloud\pterodactyl-sdk\src\MakesHttpRequests.php(101): HCGCloud\Pterodactyl\Pterodactyl->handleRequestError(Object(GuzzleHttp\Psr7\Response)) #1 D:\**\php\database\vendor\hcgcloud\pterodactyl-sdk\src\MakesHttpRequests.php(35): HCGCloud\Pterodactyl\Pterodactyl->request('POST', 'api/application...', Array) #2 D:\**\php\database\vendor\hcgcloud\pterodactyl-sdk\src\Actions\ManagesUsers.php(56): HCGCloud\Pterodactyl\Pterodactyl->post('api/application...', Array) #3 D:\**\php\database\register-handler.php(61): HCGCloud\Pterodactyl\Pterodactyl->createUser(Array) #4 {main} thrown in D:\**\php\database\vendor\hcgcloud\pterodactyl-sdk\src\MakesHttpRequests.php on line 117

Can some one help me?

@axellfumioo
Copy link
Author

Request Code:

        $user = $pterodactyl->createUser([
            'email' => $filterEmail,
            'username' => $inputUsername,
            'password' => $inputPassword,
            'language' => 'en',
            'root_admin' => false,
            'first_name' => $inputUsername,
            'last_name' => 'Client'
        ]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant