getMessag-6ren">
gpt4 book ai didi

api - Magento API 错误 : Invalid data given. 错误消息中的详细信息。 - 这个 "error message"在哪里?

转载 作者:行者123 更新时间:2023-12-04 20:19:11 25 4
gpt4 key购买 nike

我试图创建一个新产品,但发生了一些奇怪的问题,它只是给了我这个错误:

Invalid data given. Details in error message.

这是由 $e -> getMessage() 从这个片段生成的:
try {
$result = $proxy -> call($sessionId, $api, $parameters);
return $result;
} catch (SoapFault $e) {
echo '<p style="color:red;">'.$e -> getMessage().'</p>';
return false;
}

那么这个“错误信息”在哪里?谢谢!

最佳答案

强烈推荐用于记录所有 API 调用和响应的 TechColins 方法:

Magento API performance issues when doing bulk product updates

http://techcolin.net/2011/11/a-php-proxy-script-for-logging-magento-api-soap-calls/

它将使您能够准确查看传递给 API 的内容以及 magento 响应的错误。

如果您现在只是在寻找快速解决方案,这可能看起来有点额外的开销,但对于诊断 future 的问题将大有裨益。

关于api - Magento API 错误 : Invalid data given. 错误消息中的详细信息。 - 这个 "error message"在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8611739/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com