Closed dummydummydev closed 9 months ago
Hi @dummydummydev, could you give us more details to help us reproduce? It seems like ruby is failing to load the ShopifyAPI
module, you might have to require it after you start the console.
We are closing this issue because we did not hear back regarding additional details we needed to resolve this issue. If the issue persists and you are able to provide the missing clarification we need, feel free to respond and reopen this issue.
We appreciate your understanding as we try to manage our number of open issues.
You must do proper setup so Zeitwerk can load the constants for you. See https://github.com/Shopify/shopify-api-ruby/issues/1263#issuecomment-1888387585
Issue summary
I am working on rails + shopify App I want to list my webhooks and update the url of webhooks So I used REST API
shopify_api
version: "13.3.1"ShopifyAPI::Webhook.all(session: test_session,api_version:'2023-10') ^^^^^^^^^ Did you mean? ShopifyAPI::Webhooks irb(main):011> ShopifyAPI::Webhooks.all(session: test_session,api_version:'2023-10') (irb):11:in
<main>': undefined method
all' for ShopifyAPI::Webhooks:Module (NoMethodError)ShopifyAPI::Webhooks.all(session: test_session,api_version:'2023-10') ^^^^ irb(main):012>
Product API
irb(main):015> test_session = ShopifyAPI::Auth::Session.new(shop: shop.shopify_domain, access_token: shop.shopify_token) =>
<ShopifyAPI::Auth::Session:0x00007fe8d3a4d738
... irb(main):016> ShopifyAPI::Product.count(session: test_session) (irb):16:in `': uninitialized constant ShopifyAPI::Product (NameError)
ShopifyAPI::Product.count(session: test_session) ^^^^^^^^^ Did you mean? Proc irb(main):017> ShopifyAPI::Product.all(session: test_session) (irb):17:in `': uninitialized constant ShopifyAPI::Product (NameError)
ShopifyAPI::Product.all(session: test_session) ^^^^^^^^^ Did you mean? Proc irb(main):018>
Expected behavior
All The API Should Call and must show results
Actual behavior
Each API Giving error
Steps to reproduce the problem