Closed stirkac closed 1 year ago
When trying to request a Fulfilment, an error is raised, even though the response is successful and the Fulfilment Request is processed on Shopify.
shopify_api
fulfillment_request = ShopifyAPI::FulfillmentRequest.new(session: shop.session) fulfillment_request.fulfillment_order_id = [REDACTED] fulfillment_request.save > /app/vendor/bundle/ruby/3.2.0/gems/sorbet-runtime-0.5.10910/lib/types/configuration.rb:296:in `call_validation_error_handler_default': Parameter 'data': Expected type T::Hash[String, T.untyped], got type NilClass (TypeError) Caller: /app/vendor/bundle/ruby/3.2.0/gems/sorbet-runtime-0.5.10910/lib/types/private/methods/call_validation.rb:119 Definition: /app/vendor/bundle/ruby/3.2.0/gems/shopify_api-13.1.0/lib/shopify_api/rest/base.rb:229 raise TypeError.new(opts[:pretty_message]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
no Sorbet error should be raised
Sorbet error is raised, falsely raising an error for otherwise successful API request
Issue summary
When trying to request a Fulfilment, an error is raised, even though the response is successful and the Fulfilment Request is processed on Shopify.
shopify_api
version: 13.1.0Expected behavior
no Sorbet error should be raised
Actual behavior
Sorbet error is raised, falsely raising an error for otherwise successful API request
Steps to reproduce the problem