salesforce-marketingcloud / FuelSDK-Ruby

Fuel SDK for Ruby
BSD 3-Clause "New" or "Revised" License
52 stars 154 forks source link

[BUG] HTTP::TimeoutError Write timed out after 0.25 second #121

Open Ksm125 opened 3 years ago

Ksm125 commented 3 years ago

Describe the bug

Savon 2.12.1 supports write_timeout option in addition of open_timeout and read_timeout https://github.com/savonrb/savon/issues/834. When we fetch data extension rows with filter, we have write_timeout error

HTTP::TimeoutError
Write timed out after 0.25 seconds

currently, this gem has defined options :

soap_client_options = {
                    soap_header: header,
                    wsdl: wsdl,
                    endpoint: endpoint,
                    wsse_auth: ["*", "*"],
                    raise_errors: false,
                    log: debug,
                    open_timeout:180,
                    read_timeout: 180,
                    headers: {'User-Agent' => 'FuelSDK-Ruby-v' + MarketingCloudSDK::VERSION}
            }

To Reproduce Steps to reproduce the behavior.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Screenshot 2021-09-21 at 12 28 28

Code snippet

reader = MarketingCloudSDK::DataExtension::Row.new
reader.customer_key = data_extension_key
reader.props = Array(columns)
reader.filter = filter if filter
reader.authStub = auth_client

response = reader.get

Environment

The bug has the severity

Additional context Add any other context about the problem here.