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
Create asset return 406 #350
Comments
I don't see the error. https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#update-2020-01 Shopify-api-node/test/asset.test.js Lines 62 to 71 in f91e090
Shopify-api-node/test/fixtures/asset/req/create.json Lines 1 to 6 in f91e090
Shopify-api-node/test/fixtures/asset/res/create.json Lines 1 to 11 in f91e090
In your usage example the second argument of the const query = { key: 'snippets/test.liquid', value: 'Content' }; |
Thanks for quick reply. This worked! Could you please check req.json: https://github.com/MONEI/Shopify-api-node/blob/master/test/fixtures/asset/req/create.json Looks like:
I think this syntax is different than what you suggested? Also that is strange, sorry I thought that on Shopify-api-node/test/asset.test.js that input was equal to res, not req. My bad, but please double check the input data to confirm if that should be updated. |
It's ok. See, Shopify-api-node/test/asset.test.js Line 69 in f91e090
{
key: 'assets/empty.gif',
attachment: 'R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==\n'
} |
Have been working on this issue for hours, cannot create asset using asset() resource.
Here is example query:
By the way I notice 2 small errors on asset create test...
The text was updated successfully, but these errors were encountered: