Shopify API节点如何修复会话所需的秘密选项Windows上的错误

时间:2018-11-10 05:39:19

标签: node.js express-session node-redis shopify-app

我们正在使用shopify-api-node MONEI/Shopify-api-node。我们正在为我的Shopify应用实现Redis内存strategy,以进行部署。 MemoryStrategy工作正常,没有任何错误。关于RedisStrategy的问题当我为Windows启动ngrok.exe和redis-server.exe的本地主机时,在Shopify安装URL上收到错误消息。 error 警告:

警告:

express-session deprecated req.secret; provide secret option server\index.js:72:2 Warning: Failed option type: The option apiKeyis marked as required inShopifyExpress, but its value is undefined. Warning: Failed option type: The option hostis marked as required inShopifyExpress, but its value is undefined. Warning: Failed option type: The option secretis marked as required inShopifyExpress, but its value is undefined.

.env文件的所有键正确。

这是我的index.js

index.js

index.js出了什么问题?

0 个答案:

没有答案