Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3266

Improve “context deadline exceeded” errors

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: All Tools
    • None
    • 620

      https://mongodb.slack.com/archives/C0VADE8F3/p1678115793554859

      Hi all, IHAC that is running a mongodump command in Windows against an Atlas M10 Azure cluster (Mongo 6.0.4).
      The commands are identical (case-wise too) but in the first case they are not able to perform the operation while in the second one they can as you can see from the console output below

      PS C:\Users\11036213\Downloads\mongodb-database-tools-windows-x86_64-100.7.0\mongodb-database-tools-windows-x86_64-100.7.0\bin> .\mongodump.exe --uri="mongodb+srv://dx-shared.mzmgkbe.mongodb.net" --username="dxhub-bulk-site-uploader-read" --password='xxx' --db="dxhub-bulk-site-uploader"
      2023-03-06T13:01:44.018+0100    Failed: can't create session: could not connect to server: connection() error occurred during connection handshake: context deadline exceeded
      

      “Context deadline exceeded” is probably unclear to most users.

      This task proposes catching & massaging that specific error to give a more meaningful message.

            Assignee:
            Unassigned Unassigned
            Reporter:
            felipe.gasper@mongodb.com Felipe Gasper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: