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

Update dev container #2

Open
wants to merge 1 commit into
base: azd
Choose a base branch
from

Conversation

bamurtaugh
Copy link

Based on the error we were seeing in the Dev Containers extension in VS Code Desktop redis.exceptions.ConnectionError: Error connecting to localhost:6379. Multiple exceptions: [Errno 111] Connect call failed ('127.0.0.1', 6379), [Errno 99] Cannot assign requested address., I found various recommendations about updating the config in the Docker Compose file (example).

It looks like this dev container was using https://github.com/jongio/chatgpt-retrieval-plugin/blob/main/examples/docker/redis/docker-compose.yml in postCreateCommand. I updated to creating a new, dedicated Docker Compose file in .devcontainer. If you'd prefer to update the example one, I think that's fine too.

I was then getting "TypeError: string indices must be integers", so I uncommented True in the redis_datastore.py method (thanks @jongio for the recommendation). Since that was required for me to get this app to run, and I think it's safe to ignore that check since we know the install is coming from the dev container, I kept it in this PR.

As shared with @jongio in chat, http://localhost:8000/sub/openapi.json loaded for me with this updated config, and I no longer see the redis connection error, so I think it's now working in Dev Containers. I haven't tried in Codespaces, so @jongio it's probably worth verifying this doesn't affect anything there.

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