View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] API give a 500 error - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

[SOLVED] API give a 500 error

More
26 Fév 2020 15:27 #1 by antoine1003
Hey,
I need to use the API to retrieve some global parameters from a js custom file. I tried to put your sample code in a php file :
$fullUrl="localhost/ipmp_new/api/Parameter/list/all"; 
    $curl = curl_init($fullUrl);
    curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
    curl_setopt($curl, CURLOPT_USERPWD, "projeqtor:projeqtor");
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
    $curl_response = curl_exec($curl);
    echo $curl_response;
    curl_close($curl);

But this give me a HTTP 500 error and I don't see any log in the project log file :'(

Do you have any idea why?

Please Connexion or Create an account to join the conversation.

More
26 Fév 2020 16:49 #2 by antoine1003
Replied by antoine1003 on topic API give a 500 error
I found the proble the link to the htpasswd wasn't good

Please Connexion or Create an account to join the conversation.

More
01 Mar 2020 21:38 #3 by babynus
Replied by babynus on topic API give a 500 error
I thin you'll find explanation in apache error log file.
Most common issue is that .htpassword is not correctly defined (it is not by default to avoid security issue)

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.037 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.