devcontainer and vpn - sql throws ECONNRESET
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 8.7k
- Forks
- 374
- Avg merge
- 11d 16h
- Merged PRs (30d)
- 1
Description
const sql = postgres() // credentials loaded from env
await sql`SELECT 1`
I can only run this command under the following situations:
- On-site and devcontainer
- On-site and local machine
- Homeoffice/VPN and local machine
It does not work for:
- Homeoffice/VPN and devcontainer
It results in an ECONNRESET error after a few minutes. Interestingly, "pg" work in all 4 situations.
The database is in a corporate network. The vpn is zscaler. Certificates are installed in the devcontainer.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported postgres() connection and reproduce the four on-site/VPN and devcontainer/local-machine combinations using SELECT 1. Compare the ECONNRESET behavior with the working pg client and document whether the issue can be reproduced or isolated to the devcontainer, VPN, or client. Done means the cause is identified or the supported environment constraints are clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs, postgres
- Domain
- databases, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100