Skip to content

Conversation

@jvsena42
Copy link
Member

Fixes #618

This PR increases the HTTP connect and socket timeouts from 30 seconds to 60 seconds to resolve Chatwoot API timeout errors when submitting support requests.

Description

Users were experiencing frequent failures when using Settings > Support > Report Issue. The error logs showed:

Connect timeout has expired [url=https://synonym.to/api/chatwoot, connect_timeout=30000 ms]

The Chatwoot API can be slow to respond, causing connections to timeout before completing. This change increases both connectTimeoutMillis and socketTimeoutMillis to 60 seconds (matching the existing requestTimeoutMillis) to give the API more time to respond.

Preview

N/A - No UI changes

QA Notes

1. Submit support request

  1. Go to Settings > Support > Report Issue
  2. Enter an email address and message
  3. Tap Send
  4. Verify the request completes successfully without timeout errors

2. Regression - Other HTTP calls

  1. Verify Lightning channel operations work normally
  2. Verify Blocktank API calls work as expected

@jvsena42 jvsena42 self-assigned this Jan 29, 2026
@jvsena42 jvsena42 requested a review from ovitrif January 29, 2026 12:35
@jvsena42
Copy link
Member Author

Another solution is increase just to ChatWoot, but other services could also have this same issue on bad connections

@claude
Copy link

claude bot commented Jan 29, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@jvsena42 jvsena42 enabled auto-merge January 29, 2026 23:15
Copy link
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but do note if you have a socket connection taking 50s then the actual request needs another 10s, it's going to fail because the requestTimeout is also, still only 60s.

So IMO as a general hygiene the request timeout needs to be double of the allowed time for any one-way network move.

@jvsena42 jvsena42 merged commit 3d54ead into master Jan 30, 2026
13 checks passed
@jvsena42 jvsena42 deleted the fix/increase-chatwoot-timeout branch January 30, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support → Report Issue msg fails more often than it works

3 participants