Skip to content

Get connection to lemmy working in dev-container #35

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

Open
wants to merge 1 commit into
base: experimental/v4
Choose a base branch
from

Conversation

gwbischof
Copy link
Contributor

@gwbischof gwbischof commented Apr 12, 2025

I was getting this error when running the tests in the dev-container

ClientException with SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 127.0.0.1, port = 48874, uri=http://127.0.0.1:1236/api/v4/site

This change fixed the error for me.
I was planning on experimenting with generation of the api using the openapi spec from lemmy-js-client.

My intention for the file v4_test.dart was to make a test that loops through all of the endpoints defined in the openapi spec and does a basic test for each endpoint. I'm not sure how well that will work yet. Currently v4_test is passing so someone could use it to make sure the containers are working correctly.

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.

1 participant