Skip to content
This repository was archived by the owner on Oct 13, 2020. It is now read-only.
This repository was archived by the owner on Oct 13, 2020. It is now read-only.

The image array metadata doesn't look like a _FILES array #14

@tgey

Description

@tgey

Hi,

Using your package to create listings on Etsy, I tried to upload images with the following code:
param = { 'listing_id': listing_id, 'image': '/home/user/link.jpg', 'rank': int(rank) } etsy.uploadListingImage(**param)
but I get the following error:

" Could not decode response from Etsy as JSON: status_code: 500, text: "The image array metadata doesn't look like a _FILES array", url 'https://openapi.etsy.com/v2/listings/*listing_id*/images' "

Get the same error for 'image': (filepath, open(filepath, 'rb), 'image/jpeg') format.

What is the format for 'image' param to upload an image ?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions