Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report Charset GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT #215

Open
Philomath88 opened this issue Jun 3, 2023 · 0 comments
Open

Report Charset GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT #215

Philomath88 opened this issue Jun 3, 2023 · 0 comments

Comments

@Philomath88
Copy link

The charset for this report is Cp1252:

statusCode: 200,
headers: {
'x-amz-id-2': 'NmE8gUW8YVusNIJYeMYMKpS8NmD3R48fTrl5Uf9MdyGYmdLGAcLOfOTL5RQ0JnGBVY763Jg8P/M=',
'x-amz-request-id': 'CT2Z1QBGJ881CK9Y',
date: 'Sat, 03 Jun 2023 12:54:43 GMT',
'last-modified': 'Sat, 03 Jun 2023 12:54:27 GMT',
'x-amz-expiration': 'expiry-date="Sat, 02 Sep 2023 00:00:00 GMT", rule-id="Rule for: NinetyDays"',
etag: '"c632713f5c7a8ae20b014b707e54996e"',
'x-amz-server-side-encryption': 'aws:kms',
'x-amz-server-side-encryption-aws-kms-key-id': 'arn:aws:kms:eu-west-1:538593642818:key/eefdcca3-2e83-416d-b342-a5f2ccdb7ea5',
'x-amz-server-side-encryption-bucket-key-enabled': 'true',
'x-amz-version-id': '_C_D5kJYk8DD_B6KHyj3vslAEhOmNUBn',
'accept-ranges': 'bytes',
'content-type': 'text/plain; charset=Cp1252',
server: 'AmazonS3',
'content-length': '825',
connection: 'close'
}
}
Decrypted Buffer: item-name item-description listing-id seller-sku price quantity open-dateimage-url item-is-marketplace product-id-type zshop-shipping-fee item-note item-condition zshop-category1 zshop-browse-path zshop-storefront-feature asin1 asin2 asin3 will-ship-internationally expedited-shipping zshop-boldface product-id bid-for-featured-placement add-delete pending-quantity Business Price Quantity Price Type Quantity Lower Bound 1 Quantity Price 1 Quantity Lower Bound 2 Quantity Price 2 Quantity Lower Bound 3 Quantity Price 3 Quantity Lower Bound 4 Quantity Price 4 Quantity Lower Bound 5 Quantity Price 5 merchant-shipping-group Progressive Price Type Progressive Lower Bound 1 Progressive Price 1 Progressive Lower Bound 2 Progressive Price 2 Progressive Lower Bound 3 Progressive Price 3 Minimum order quantity Sell remainder

report: []
prompt: Input JSON or ask OpenAI?:

The download function does not currently take the charset into account from the response (it is manually set as an option). Also, the buffer is already decrypted so it does not be decrypted.

However, the conversion to JSON is not working (it returns an empty report).

I tried to play around with the options to no avail and I don't want to change away from the csv library if not absolutely necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant