Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

API : 504 Gateway Time-out

former_member823626
Discoverer
0 Likes
1,208
  • SAP Managed Tags

Hi!

I am trying to call the SAP api of my client to get products, order status, or send order.

This is my php code in order to login to SAP:

http://clients.vincent-blondaux.fr/sap/


curl_setopt_array($curl, array(
CURLOPT_URL => 'https://rds.creamande.privatcloud.biz:50000/b1s/v2/Login',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"CompanyDB": "'.CURL_COMPANY.'",
"UserName": "'.CURL_USERNAME.'",
"Password": "'.CURL_PASSWORD.'"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Accept' => 'application/json',
'Access-Control-Allow-Origin' => '*',
),
CURLOPT_COOKIEJAR => $ckfile,
));


Curl error: Failed to connect to rds.creamande.privatcloud.biz port 50000: Connection timed out (or 504 Gateway Time-out via Postman or Insomnia).The service provider who installed the software at my client's shop tells me that the IP of the server making the call has been added to the whitelist.

I don't have any leads on where the problem is coming from. Does anyone have an idea?


Thanks a lot!

Vincent

Hi!

I am trying to call the SAP api of my client to get products, order status, or send order.

This is my php code in order to login to SAP:

http://clients.vincent-blondaux.fr/sap/


curl_setopt_array($curl, array(
CURLOPT_URL => 'https://rds.creamande.privatcloud.biz:50000/b1s/v2/Login',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"CompanyDB": "'.CURL_COMPANY.'",
"UserName": "'.CURL_USERNAME.'",
"Password": "'.CURL_PASSWORD.'"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Accept' => 'application/json',
'Access-Control-Allow-Origin' => '*',
),
CURLOPT_COOKIEJAR => $ckfile,
));


Curl error: Failed to connect to rds.creamande.privatcloud.biz port 50000: Connection timed out (or 504 Gateway Time-out via Postman or Insomnia).The service provider who installed the software at my client's shop tells me that the IP of the server making the call has been added to the whitelist.

I don't have any leads on where the problem is coming from. Does anyone have an idea?


Thanks a lot!

Vincent

0 REPLIES 0