[PR #1] [MERGED] Fix the failure to connect to the database caused by setting the database name #15

Closed
opened 2026-03-01 14:36:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amitshekhariitbhu/go-backend-clean-architecture/pull/1
Author: @jinrenjie
Created: 1/10/2023
Status: Merged
Merged: 1/10/2023
Merged by: @amitshekhariitbhu

Base: mainHead: main


📝 Commits (2)

  • 68d2cb2 bugfix: fix connect to mongodb server bug
  • 65bef04 minor: delete useless environment variable

📊 Changes

2 files changed (+2 additions, -3 deletions)

View changed files

📝 bootstrap/database.go (+2 -2)
📝 docker-compose.yaml (+0 -1)

📄 Description

2023/01/10 15:49:30 The App is running in development env
2023/01/10 07:49:30 connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.

When authentication is required, creating a connection and specifying a database name causes authentication to fail.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amitshekhariitbhu/go-backend-clean-architecture/pull/1 **Author:** [@jinrenjie](https://github.com/jinrenjie) **Created:** 1/10/2023 **Status:** ✅ Merged **Merged:** 1/10/2023 **Merged by:** [@amitshekhariitbhu](https://github.com/amitshekhariitbhu) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`68d2cb2`](https://github.com/amitshekhariitbhu/go-backend-clean-architecture/commit/68d2cb214cf80149d22f4d54d63cd845c7f724b6) bugfix: fix connect to mongodb server bug - [`65bef04`](https://github.com/amitshekhariitbhu/go-backend-clean-architecture/commit/65bef044d41a0bc304e4f6d32c7f5dfaaafbc416) minor: delete useless environment variable ### 📊 Changes **2 files changed** (+2 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `bootstrap/database.go` (+2 -2) 📝 `docker-compose.yaml` (+0 -1) </details> ### 📄 Description ```bash 2023/01/10 15:49:30 The App is running in development env 2023/01/10 07:49:30 connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed. ``` When authentication is required, creating a connection and specifying a database name causes authentication to fail. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 14:36:51 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-backend-clean-architecture#15
No description provided.