NameError:非初始化的Constant Shopifapi :: Session Shopify_app Gem -V 19,Rails 7
我正在使用背景作业通过Webhook获取订单并执行其他处理。我将其在我的后台作业上获取,但是当我尝试启动会话时,它会给我以下错误。
nameError:nameReror:niritialialized constant shopifyapi :: session 我正在使用以下版本: Rails:-7.0.3,Ruby:-3.1.2,Shopify_app:-19.0.2
有人可以向我解释一下我在这里做错了什么? GEM Update/最新版本是否具有在后台作业中激活或创建会话的不同方法。
非常感谢您的建议。
I am using background jobs to get orders via webhook and perform some other processing. I get the webhook it on my background jobs but when When I try to initiate a session it gives me the following error.
NameError: uninitialized constant ShopifyAPI::Session
I am using the following versions:
rails:- 7.0.3, ruby:- 3.1.2, shopify_app:- 19.0.2
can anyone explain it to me that what I am doing wrong here? Did the gem update/latest version has a different approach to activate or create a session in background job.
I really appreciate your suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在Shopify Gems的新版本中,Shopifyapi :: Session不再存在:
https://www.rubydoc.info/gems/shopify_api/#breaking-change-change-change-notice-notice-for-version-10-0-0-0
您现在可以创建一种方法:
In the new version of the shopify gems, ShopifyAPI::Session doesn't exist anymore:
https://www.rubydoc.info/gems/shopify_api/#breaking-change-notice-for-version-10-0-0
now you can create a method: