Jump to content

Edit History

aruiz0922

aruiz0922

Buenas a todos.

Soy nuevo en prestashop y estoy empezando con la API, de momento bien pero estoy teniendo problemas al obtener blank schemas de algunos resources, en 15 de los 70 posibles el servidor me devuelve el error "This call to PrestaShop Web Services failed and returned an HTTP status of 500. That means: Internal Server Error", es una instalación limpia de Prestashop

Prestashop 1.7.8.6

PHP 7.4.28

Resources que dan error: attachment, carts, categories, combinations, customers, customer_threads, customizations, manufacturers, order_details, order_slip, orders, product_options, products, supply_orders y warehouses.

Este es el error p.e. en orders:

HTTP REQUEST HEADER
GET //api/orders?schema=blank HTTP/1.1
Host: kit1.example.com
Authorization: Basic OVQ3Q1VaWVBQTFRMWDVQODVHWlZUU0ZGSDlGQUE1Slg6
Accept: */*

HTTP RESPONSE HEADER
HTTP/1.1 500 Internal Server Error
Date: Wed, 14 Sep 2022 08:31:58 GMT
Server: Apache/2.4.53 (Debian)
Access-Time: 1663144318
X-Powered-By: PrestaShop Webservice
PSWS-Version: 1.7.8.6
Execution-Time: 0.007
Content-Sha1: cf663b2f7b73f0da43139eef17228652a00d0e36
Set-Cookie: PrestaShop-950383588b671a3073f0a00f5126f5e3=def5020088608d2a95b96b505e2b85e00f2c4a635ea3a55a41d26c43e23a25ca9be15a34a25ec782906590f2914969ed39aecac21edfd786c15d72237fa51b35a4630734a09c9c78a98be4893dc76acc247474ae6d52830b2a42cdfa941f3878d50dd1655132ebc2f88079cd72d54faeca5641e30d3aa3d452a1b0a15232917356c609b049419846e8d7720ebe517eb586c751f4784fd8237c43d530b8ee20057050f7fe3b1dbd403e74282b7798f7a1ff5354e7bf6cbc1965a98c309b5ef95c8d95ac2a989687c2e84c991ba5852bd66cef3e6d244c4257b1; expires=Tue, 04-Oct-2022 08:31:58 GMT; Max-Age=1728000; path=/; domain=kit1.infortisa.com; secure; HttpOnly; SameSite=Lax
Content-Length: 2936
Connection: close
Content-Type: text/xml;charset=utf-8
RETURN HTTP BODY
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<errors>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 716)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
</errors>
</prestashop>
{"error":"1","msg":"This call to PrestaShop Web Services failed and returned an HTTP status of 500. That means: Internal Server Error."}

Alguna idea?

Gracias.

aruiz0922

aruiz0922

Buenas a todos.

Soy nuevo en prestashop y estoy empezando con la API, de momento bien pero estoy teniendo problemas al obtener blank schemas de algunos resources, en 15 de los 70 posibles el servidor me devuelve el error "This call to PrestaShop Web Services failed and returned an HTTP status of 500. That means: Internal Server Error", es una instalación limpia de Prestashop

Prestashop 1.7.8.6

PHP 7.4.28

Resources que dan error: attachment, carts, categories, combinations, customers, customer_threads, customizations, manufacturers, order_details, order_slip, orders, product_options, products, supply_orders y warehouses.

Este es el error p.e. en orders:

HTTP REQUEST HEADER
GET //api/orders?schema=blank HTTP/1.1
Host: kit1.infortisa.com
Authorization: Basic OVQ3Q1VaWVBQTFRMWDVQODVHWlZUU0ZGSDlGQUE1Slg6
Accept: */*

HTTP RESPONSE HEADER
HTTP/1.1 500 Internal Server Error
Date: Wed, 14 Sep 2022 08:31:58 GMT
Server: Apache/2.4.53 (Debian)
Access-Time: 1663144318
X-Powered-By: PrestaShop Webservice
PSWS-Version: 1.7.8.6
Execution-Time: 0.007
Content-Sha1: cf663b2f7b73f0da43139eef17228652a00d0e36
Set-Cookie: PrestaShop-950383588b671a3073f0a00f5126f5e3=def5020088608d2a95b96b505e2b85e00f2c4a635ea3a55a41d26c43e23a25ca9be15a34a25ec782906590f2914969ed39aecac21edfd786c15d72237fa51b35a4630734a09c9c78a98be4893dc76acc247474ae6d52830b2a42cdfa941f3878d50dd1655132ebc2f88079cd72d54faeca5641e30d3aa3d452a1b0a15232917356c609b049419846e8d7720ebe517eb586c751f4784fd8237c43d530b8ee20057050f7fe3b1dbd403e74282b7798f7a1ff5354e7bf6cbc1965a98c309b5ef95c8d95ac2a989687c2e84c991ba5852bd66cef3e6d244c4257b1; expires=Tue, 04-Oct-2022 08:31:58 GMT; Max-Age=1728000; path=/; domain=kit1.infortisa.com; secure; HttpOnly; SameSite=Lax
Content-Length: 2936
Connection: close
Content-Type: text/xml;charset=utf-8
RETURN HTTP BODY
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<errors>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 716)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
<error>
<code><![CDATA[5]]></code>
<message><![CDATA[[PHP Notice #8] Trying to access array offset on value of type null (/var/www/kit1/classes/webservice/WebserviceOutputBuilder.php, line 719)]]></message>
</error>
</errors>
</prestashop>
{"error":"1","msg":"This call to PrestaShop Web Services failed and returned an HTTP status of 500. That means: Internal Server Error."}

Alguna idea?

Gracias.

×
×
  • Create New...