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

API Creat User #74

Open
apocsantos opened this issue May 15, 2024 · 1 comment
Open

API Creat User #74

apocsantos opened this issue May 15, 2024 · 1 comment

Comments

@apocsantos
Copy link

Hello,

Ive followed the documentation but still no joy. I've created the API Token with the proper permissions, but either get one or the other error:

Falha ao criar o usuário Fatima (fatima).
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
curl: (3) URL rejected: Bad hostname

Even like this:

<?php $api_url = 'https://xxxxxxxx/api/users'; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $api_url, CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Token: xxxxxxxx' ), )); $response = curl_exec($curl); curl_close($curl);

Still no luck it says the resource was moved.

All help is appreciated.

Regards

@hpopotter7
Copy link
Contributor

Tenia un mensaje similar, pero me parece causa diferente:
Mi provedor del hosting bloqueo/redirecciono el trafico del puerto 80 al puerto 443 https

En tu caso tu url esta trando de consumir api por un puerto fuera del rango ó el dns esta mal

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

2 participants