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

[SOLVED] API give a 500 error

More
26 Feb 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 Log in or Create an account to join the conversation.

More
26 Feb 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 Log in 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 Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.037 seconds

Cookies settings

×

Functional Cookies

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

Please login to see yours activities!

Other cookies

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