Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Python 2.7、Magento社区1.8 API连接问题_Php_Python_Windows_Magento_Python 2.7 - Fatal编程技术网

Php Python 2.7、Magento社区1.8 API连接问题

Php Python 2.7、Magento社区1.8 API连接问题,php,python,windows,magento,python-2.7,Php,Python,Windows,Magento,Python 2.7,我正在使用连接,运气很差。此API正在尝试使用Magento并连接到社区Magento 1.8 我的本地安装是Windows8上的Python 2.7(64),而Magento是在PHP5.4堆栈上 经过一些修改和使用了一些API之后,这是python magento API的主要错误,尝试从Pycharm和DataNitro连接。。。 转到直接url路径(检查防火墙问题),我得到 <methodResponse><fault><value><struc

我正在使用连接,运气很差。此API正在尝试使用Magento并连接到社区Magento 1.8

我的本地安装是Windows8上的Python 2.7(64),而Magento是在PHP5.4堆栈上

经过一些修改和使用了一些API之后,这是python magento API的主要错误,尝试从Pycharm和DataNitro连接。。。 转到直接url路径(检查防火墙问题),我得到

<methodResponse><fault><value><struct><member><name>faultCode</name><value><int>630</int></value></member><member><name>faultString</name><value><string>Unable to read request</string></value></member></struct></value></fault></methodResponse>
错误

socket.error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
我能够在另一个Magento安装上设置它,它工作了,显示。。。
经过多次测试后,1.7安装成功,而1.8仍在同一服务器和配置上处于阻塞状态。唯一的结论是1.8没有完成API使用,这个问题(截至2013年6月23日)是1.8 Magento错误。

不确定线程发起人是否仍然存在问题,但我在Magento 1.8和xmlrpc方面遇到了问题

from magento import *
m = MagentoAPI('mag1', 80, 'user', 'pass')
失败于

<ProtocolError for mag1:80/magento/api/xmlrpc: 404 Not Found>
成功

Magento 1.8中新的重写处理导致的问题。有关更多信息,请参见此处:

希望这有帮助


杰瑞。

这不是防火墙问题吗?只需将url粘贴到web浏览器中,您就可以连接端口8080上的远程主机吗?无论您以这种方式得到什么样的响应,检查服务器是否真的会响应您的请求都是很重要的。我可以在浏览器中使用url查看,但除了我附加到问题中的内容外,没有以给定的XML传递响应。
socket.error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Resources:

cart: create, info, license, order, totals
cart_coupon: add, remove
cart_customer: addresses, set
cart_payment: list, method
cart_product: add, list, moveToCustomerQuote, remove, update
cart_shipping: list, method
catalog_category: assignProduct, assignedProducts, create, currentStore, delete, info, level, move, removeProduct, tree, update, updateProduct
catalog_category_attribute: currentStore, list, options
catalog_product: create, currentStore, delete, getSpecialPrice, info, list, listOfAdditionalAttributes, setSpecialPrice, update
catalog_product_attribute: addOption, create, currentStore, info, list, options, remove, removeOption, types, update
catalog_product_attribute_media: create, currentStore, info, list, remove, types, update
catalog_product_attribute_set: attributeAdd, attributeRemove, create, groupAdd, groupRemove, groupRename, list, remove
catalog_product_attribute_tier_price: info, update
catalog_product_custom_option: add, info, list, remove, types, update
catalog_product_custom_option_value: add, info, list, remove, update
catalog_product_downloadable_link: add, list, remove
catalog_product_link: assign, attributes, list, remove, types, update
catalog_product_tag: add, info, list, remove, update
catalog_product_type: list
cataloginventory_stock_item: list, update
core_magento: info
core_store: info, list
customer: create, delete, info, list, update
customer_address: create, delete, info, list, update
customer_group: list
directory_country: list
directory_region: list
giftmessage: setForQuote, setForQuoteItem, setForQuoteProduct
sales_order: addComment, cancel, hold, info, list, unhold
sales_order_creditmemo: addComment, cancel, create, info, list
sales_order_invoice: addComment, cancel, capture, create, info, list, void
sales_order_shipment: addComment, addTrack, create, getCarriers, info, list, removeTrack, sendInfo

Process finished with exit code 0
from magento import *
m = MagentoAPI('mag1', 80, 'user', 'pass')
<ProtocolError for mag1:80/magento/api/xmlrpc: 404 Not Found>
m = MagentoAPI('mag1', 80, 'user', 'pass', path='/index.php/api/xmlrpc')