shopify - ShopifyBuy js API 为单个产品返回 404
问题描述
我正在尝试使用 ShopifyBuy 客户端 api 调试产品的 404 问题。该产品总是返回 404,我无法理解为什么。
下面的代码是问题发生的地方。变量 productId 在 Shopify 商店中具有有效产品的有效 ID,但 client.fetchProduct 返回 404。我怀疑这是 Shopify 中的一个问题,但从支持人员那里获得帮助需要很长时间。
var productId = productDiv.data("shopify-id");
client.fetchProduct(productId).then(function (fetchedProduct) {
productDiv.data("product", fetchedProduct);
});
请求网址:https://shop.mysite.co/api/apps/6/product_listings/[productId]
有没有人见过这个问题,让我在这里指出正确的方向?
谢谢
解决方案
推荐阅读
- haskell - 用于检测特殊文件名的摇动脚本
- react-native - 如何解决未处理的承诺拒绝:错误:无法激活保持清醒 React Native
- python - 您如何在列表中找到最高值,然后随着其他值的增加而增加它以及期望设置为 0 的值
- python - 为什么不是所有的因子变量都出现在图例中?
- python - Python多处理并行写入单个gzip
- python - IBM Stats 订阅主题始终返回原因 2033:失败:MQRC_NO_MSG_AVAILABLE
- reactjs - 如何使用 su user -c 结合 npm start --prefix?
- r - 在 R 中绘制时间序列的难度
- java - JComboBox 背景直到悬停在它上面才被绘制
- haskell - 哈斯克尔。如何使用 GADT 实现自定义 monad 转换器?