Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCP connection reset by peer, can I adjusting the cURL Timeout? #17

Closed
sharkbit opened this issue Feb 22, 2020 · 2 comments · May be fixed by #28
Closed

TCP connection reset by peer, can I adjusting the cURL Timeout? #17

sharkbit opened this issue Feb 22, 2020 · 2 comments · May be fixed by #28

Comments

@sharkbit
Copy link

Unfortunately my Server is in a remote location connected by satellites. I get this error Randomly reminiscently from weather patterns. Is there a way to adjust the Timeout period?

RuntimeException
cURL error during making API call. cURL Error Number:[35] with error:[TCP connection reset by peer]

1. in /var/www/badgeApp/vendor/quickbooks/payments-sdk/src/HttpClients/core/HttpCurlClient.php at line 73
 throw new \RuntimeException("cURL error during making API call. cURL Error Number:[" . $errorNumber . "] with error:[" . $errorMsg . "]");

2. in /var/www/badgeApp/vendor/quickbooks/payments-sdk/src/HttpClients/core/HttpCurlClient.php at line 54 – QuickBooksOnline\Payments\HttpClients\core\HttpCurlClient::handleCurlErrors()
 $this->handleCurlErrors();

3. in /var/www/badgeApp/vendor/quickbooks/payments-sdk/src/PaymentClient.php at line 95 – QuickBooksOnline\Payments\HttpClients\core\HttpCurlClient::send()
 $response = $this->httpClient->send($request);

4. in /var/www/badgeApp/backend/views/payment/process.php at line 61 – QuickBooksOnline\Payments\PaymentClient::charge()
 $response = $client->charge($charge);
@bsivalingam
Copy link
Contributor

@sharkbit Thanks for bringing this to our attention. A Configurable value for timeout can help with this error. I will create a JIRA for us to work on, but feel free to send a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@sharkbit @abisalehalliprasan @bsivalingam and others