question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: support atlas shared cluster

See original GitHub issue

Database conected right after a short time get error error:

Uncaught (in promise) Error: MongoError: "Invalid response header" if (!headerBuffer) throw new MongoDriverError("Invalid response header");
                               ^
at WireProtocol.receive (https://deno.land/x/mongo@v0.29.2/src/protocol/protocol.ts:106:32)

I connect with srv url

my code

import { MongoClient } from "https://deno.land/x/mongo@v0.29.2/mod.ts";
import { logger } from "../utils/logger.ts";
import { configs } from "../../configs.ts";

const log = logger({ name: "DB Manager" });

log.info("Initializing Database 👀");

const client = new MongoClient();
const db = configs.DATABASE;

client.connect(
  "mongodb+srv://vidar:[]password@discordenobot.ldfgs.mongodb.net/DiscordenoBot?authMechanism=SCRAM-SHA-1"
);

log.info("Database connected successfully ✅");

Normally the srv url is in env. if i produce the same on node i get no error

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
VidarSeccommented, Feb 27, 2022

sry didnt want close it 🙈

1reaction
lucsoftcommented, Feb 27, 2022

why did you close it? we should improve our atlas support

Read more comments on GitHub >

github_iconTop Results From Across the Web

Atlas M0 (Free Cluster), M2, and M5 Limitations - MongoDB
You can deploy M0 free clusters and M2/M5 shared clusters only in a subset of regions on AWS, Google Cloud, and Azure. To...
Read more >
terraform-provider-mongodbatlas/CHANGELOG.md at master
Terraform MongoDB Atlas Provider: Deploy, update, and manage MongoDB Atlas ... to upgrade shared/TENANT tiers for clusters and advanced clusters #874 ...
Read more >
Finding the Right MongoDB Atlas Cluster Size: Doe…
How do you determine whether your MongoDB Atlas cluster is over provisioned, whether the new feature in your next application release will ...
Read more >
MongoDB Atlas Best Practices - Microsoft
Scaling a MongoDB Atlas Cluster ... performance and storage efficiency, as well as support the ... For all dedicated MongoDB Atlas clusters, users...
Read more >
Iowa High School Away Game Atlas
Help. Share. 30mi. All. Search. loading... Home. +. –. The layer, Iowa School Districts, School & Athletic Facilities, cannot be added to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found