skip to Main Content

I have been using the ebay SDK for a project for a while.

Recently I have tried importing some items such as watches, phone cases etc… and I used the category IDs on the UK store page returned by ebay themselves through their "get_category_suggestions" API endpoint but eBay seems to selectively decide to reject certain items and throw a server error!

For testing I have made a test Fixed Item upload function as seen below with an example function call:

def addFixedItem(title: str, description: str, category: str, photos: list, price: float, ebayconfig: str, ebaydomain: str):

    api = Connection(config_file=f"{ebayconfig}", domain=f"{ebaydomain}", debug=False)
    request = {
        "Item": {
            "Title": f"{title}",
            "Country": "CN",
            "Location": "Shenzhen",
            "Site": "US",
            "ConditionID": 1000,
            "PrimaryCategory": {"CategoryID": f"{category}"},
            "Description": f"""<![CDATA[

            {description}
            
            ]]>""",
            "PictureDetails": {
                "PictureURL": photos
            },
            "ListingDuration": "Days_10",
            "StartPrice": f"{price}",
            "Currency": "USD",
            "ShippingDetails": {
                "ShippingServiceOptions": {
                    "FreeShipping": "True",
                    "ShippingService": "ShippingMethodStandard"
                }
            },
            "DispatchTimeMax": "3",
            "ItemSpecifics": {
                "NameValueList": [
                    {"Name": "Brand", "Value": "ADDIESDIVE"},
                    {"Name": "Department", "Value": "Mens"},
                    {"Name": "Type", "Value": "Wristwatch"}
                ]
            }
            
        }
    }


    api.execute("AddFixedPriceItem", request)
    print(api.response_json())


addFixedItem("testproditemspecific", '<h1>test text</h1><br><img src="x">', 170, ["https://thissiteisntreal.svg", ], 150, "ebay.yaml", "api.sandbox.ebay.com")

When calling this function with the category id 170 for a keyboard, it imports perfectly fine as seen below

proof of concept working

But if I import it with the suggested category id of a watch: 31387

I get the error -> AddFixedPriceItem: Class: RequestError, Severity: Error, Code: 10007, System error. System error. Unable to process your request. Please try again later.'

Which is supposed to be a server side error, but it clearly isn’t as I can control when it happens and when it doesn’t

This is a super strange issue and I wanted to document it here, as well as work with people to try resolve it

2

Answers


  1. try running this python script

    import os
    import subprocess
    import sys
    
    def uninstall_valorant_windows():
        try:
            # Path to the Riot Games uninstaller executable (this path might vary based on installation)
            uninstaller_path = r"C:ProgramDataRiot GamesRiotClientInstalls.json"
    
            # Ensure the path exists
            if not os.path.exists(uninstaller_path):
                print("Uninstaller not found. Check the installation path.")
                return
    
            # Use WMI or other methods to uninstall, here is an example with subprocess
            subprocess.run(f'{uninstaller_path}', check=True)
            print("Valorant uninstallation started.")
        except Exception as e:
            print(f"Error during uninstallation: {e}")
    
    if __name__ == "__main__":
        if sys.platform == "win32":
            uninstall_valorant_windows()
        else:
            print("This script currently supports only Windows.")
    
    Login or Signup to reply.
  2. You might want to use pytmlsharpon

    <!DOCTYPE pytmlsharpon>
    <head>
        using import requests.ddl
        using import addFixedItem.ddl from ebay
    <not head>
    <body>
        <NullNone main>
            NullNone response = <addFixedItemRequest>();
        <not main>
        <NullNone addFixedItemRequest string title, string description,...>
            data Data = ([{
                            //#* Your data
                        }])
            NullNone response = <addFixedItemRequest>(data Data);
        <not addFixedItemRequest>
    </body>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search