Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Http\Client\Socket\Exception\ConnectionException: Unable to find the socket transport "unix"

Open
#36 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php

Research direction

Start by running tests/Repository/PostRepositoryTestWithTestcontainers.php and reproduce the socket transport error. Inspect vendor/php-http/socket-client/src/Client.php around line 117 to determine why the unix transport is unavailable in the reported setup. Done means the test no longer raises this connection exception, with the required environment or configuration clarified.

Written by the indexing model from the issue text.

Description

Check the testing codes in the PR https://github.com/hantsy/symfony-rest-sample/blob/5e7d022e62d046933ff8117a7370e3842ca9c20b/tests/Repository/PostRepositoryTestWithTestcontainers.php

Http\Client\Socket\Exception\ConnectionException: Unable to find the socket transport "unix" - did you forget to enable it when you configured PHP?

...vendor\php-http\socket-client\src\Client.php:117
Dominant language
PHP
Stars
215
Forks
34
Avg merge
1h 59m
Merged PRs (30d)
3

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from testcontainers/testcontainers-php

All issues in testcontainers/testcontainers-php

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.