1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ShopifyAPI::Auth::Oauth::AuthQueryでwrong number of arguments (given 1, expected 0)が出る場合(Rails7 + Ruby3.0以上)

Last updated at Posted at 2023-01-03

Shopifyの公式gemを使っていて発生したエラーに対する対処法。
(Rails7, Ruby3.0以上で多分発生)

filtered_params = request.parameters.symbolize_keys.slice(:code, :shop, :timestamp, :state, :host, :hmac)
keyword_params = Hash.ruby2_keywords_hash(filtered_params)
auth_query = ShopifyAPI::Auth::Oauth::AuthQuery.new(keyword_params)

auth_result = ShopifyAPI::Auth::Oauth.validate_auth_callback(
  cookies: cookies.to_h,
  auth_query: auth_query
)

キーワード引数の挙動の変更によるものと思います。

関連するワード:Shopify gem Oauth Rails7 Ruby3.0

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?