添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
@media not all and (min-width:1419px) and (max-width:1419.98px){.fresnel-between-lg-xl{!important;}}
Seller Forums
Sign in
Sign in
user profile
Sign in
user profile
Sign in
user profile
Seller_dGcYLvliKcyaU

mws.Feeds.submit_feed() started getting 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' error

Can someone please help me with this?

mws.Feeds.submit_feed() had worked just fine up until two weeks ago. Now it gives me ‘xml.etree.ElementTree.Element’ error.

I have been using the credentials below:

mws.Feeds(
access_key.MWS_ACCESS_KEY,
secret_key = MWS_SECRET_KEY,
account_id& = self.SELLER_ID,
region = ‘US’)

This is my request:

<?xml version="1.0"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
  <Header>
    <DocumentVersion>1.01</DocumentVersion>
    <MerchantIdentifier>xxxxxx</MerchantIdentifier>
  </Header>
  <MessageType>Inventory</MessageType>
  <Message>
    <MessageID>1</MessageID>
    <OperationType>Update</OperationType>
    <Inventory>
      <SKU>xxxxx</SKU>
      <Quantity>0</Quantity>
    </Inventory>
  </Message>
</AmazonEnvelope>
This is my code:
def SendFeed( self, xmlRequest ):
        assert( xmlRequest != '' )
        request = xmlRequest.encode('utf-8')
        response = self.feeds_api.submit_feed(
            request,
            '_POST_INVENTORY_AVAILABILITY_DATA_',
            self.MARKETPLACES
        return response
I have created an App in my Developer central.
Thank you!
19 views
3 replies
0 0
Reply
user profile
Seller_dGcYLvliKcyaU
Most helpful reply This reply was marked most helpful by the original poster.

Found the problem. I just needed to update mws.

0 0
3 replies
user profile
Seller_dGcYLvliKcyaU
Most helpful reply This reply was marked most helpful by the original poster.

Found the problem. I just needed to update mws.

0 0
user profile
Seller_06QZNs41VitRV

Hi AutoShopping24,

I am also getting this error with mws reports api, using the same lib ( amazon-mws ?), stuff was working now it isnt, I’m curious what version you upgraded from, and to? I’m using the latest version of the lib and I still get this error.

Thanks,

0 0
There are no more posts to display
user profile
Seller_dGcYLvliKcyaU

mws.Feeds.submit_feed() started getting 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' error

Can someone please help me with this?

mws.Feeds.submit_feed() had worked just fine up until two weeks ago. Now it gives me ‘xml.etree.ElementTree.Element’ error.

I have been using the credentials below:

mws.Feeds(
access_key.MWS_ACCESS_KEY,
secret_key = MWS_SECRET_KEY,
account_id& = self.SELLER_ID,
region = ‘US’)

This is my request:

<?xml version="1.0"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
  <Header>
    <DocumentVersion>1.01</DocumentVersion>
    <MerchantIdentifier>xxxxxx</MerchantIdentifier>
  </Header>
  <MessageType>Inventory</MessageType>
  <Message>
    <MessageID>1</MessageID>
    <OperationType>Update</OperationType>
    <Inventory>
      <SKU>xxxxx</SKU>
      <Quantity>0</Quantity>
    </Inventory>
  </Message>
</AmazonEnvelope>
This is my code:
def SendFeed( self, xmlRequest ):
        assert( xmlRequest != '' )
        request = xmlRequest.encode('utf-8')
        response = self.feeds_api.submit_feed(
            request,
            '_POST_INVENTORY_AVAILABILITY_DATA_',
            self.MARKETPLACES
        return response
I have created an App in my Developer central.
Thank you!
19 views
3 replies
0 0
Reply
user profile

mws.Feeds.submit_feed() started getting 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' error

by Seller_dGcYLvliKcyaU

Can someone please help me with this?

mws.Feeds.submit_feed() had worked just fine up until two weeks ago. Now it gives me ‘xml.etree.ElementTree.Element’ error.

I have been using the credentials below:

mws.Feeds(
access_key.MWS_ACCESS_KEY,
secret_key = MWS_SECRET_KEY,
account_id& = self.SELLER_ID,
region = ‘US’)

This is my request:

<?xml version="1.0"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
  <Header>
    <DocumentVersion>1.01</DocumentVersion>
    <MerchantIdentifier>xxxxxx</MerchantIdentifier>
  </Header>
  <MessageType>Inventory</MessageType>
  <Message>
    <MessageID>1</MessageID>
    <OperationType>Update</OperationType>
    <Inventory>
      <SKU>xxxxx</SKU>
      <Quantity>0</Quantity>
    </Inventory>
  </Message>
</AmazonEnvelope>
This is my code:
def SendFeed( self, xmlRequest ):
        assert( xmlRequest != '' )
        request = xmlRequest.encode('utf-8')
        response = self.feeds_api.submit_feed(
            request,
            '_POST_INVENTORY_AVAILABILITY_DATA_',
            self.MARKETPLACES
        return response
I have created an App in my Developer central.
Thank you!
Tags : Fees, SKU
0 0
19 views
3 replies
Reply
user profile
Seller_dGcYLvliKcyaU
Most helpful reply This reply was marked most helpful by the original poster.

Found the problem. I just needed to update mws.

0 0
user profile
Seller_dGcYLvliKcyaU
Most helpful reply This reply was marked most helpful by the original poster.

Found the problem. I just needed to update mws.

0 0
user profile
Seller_dGcYLvliKcyaU
Most helpful reply This reply was marked most helpful by the original poster.

Found the problem. I just needed to update mws.

0 0
Jump to reply
3 replies
3 replies
Quick filters
user profile
Seller_dGcYLvliKcyaU
Most helpful reply This reply was marked most helpful by the original poster.

Found the problem. I just needed to update mws.

0 0
user profile
Seller_06QZNs41VitRV

Hi AutoShopping24,

I am also getting this error with mws reports api, using the same lib ( amazon-mws ?), stuff was working now it isnt, I’m curious what version you upgraded from, and to? I’m using the latest version of the lib and I still get this error.

Thanks,

0 0
There are no more posts to display
user profile
Seller_dGcYLvliKcyaU
Most helpful reply This reply was marked most helpful by the original poster.

Found the problem. I just needed to update mws.

0 0
user profile
Seller_dGcYLvliKcyaU
Most helpful reply This reply was marked most helpful by the original poster.

Found the problem. I just needed to update mws.

0 0
Reply
user profile
Seller_06QZNs41VitRV

Hi AutoShopping24,

I am also getting this error with mws reports api, using the same lib ( amazon-mws ?), stuff was working now it isnt, I’m curious what version you upgraded from, and to? I’m using the latest version of the lib and I still get this error.

Thanks,

0 0
user profile
Seller_06QZNs41VitRV

Hi AutoShopping24,

I am also getting this error with mws reports api, using the same lib ( amazon-mws ?), stuff was working now it isnt, I’m curious what version you upgraded from, and to? I’m using the latest version of the lib and I still get this error.

Thanks,

0 0
Reply
There are no more posts to display

Similar Discussions

Similar Discussions

Go to original post