[Build Failure] ConfigurationError in aws lambda test

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Fixed
    • Priority: Unknown
    • 4.16.0
    • Affects Version/s: None
    • Component/s: None
    • 🔵 Done
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      ConfigurationError: "unsupported operand type(s) for |: 'type' and 'NoneType'"

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_faas_lambda_test_aws_lambda_deployed_d2653eecc69fe76599bc4c5fd7ab3835deff1da8_25_09_10_16_50_43/logs?execution=0

      Context of when and why the failure occurred:

      Failed on an unrelated change on 8 September after passing on 3 September.

      Stack trace:

      {"errorMessage": "unsupported operand type(s) for |: 'type' and 'NoneType'", "errorType": "ConfigurationError", "requestId": "", "stackTrace": ["  File \"/var/lang/lib/python3.9/importlib/__init__.py\", line 127, in import_module\n    return _bootstrap._gcd_import(name[level:], package, level)\n", "  File \"<frozen importlib._bootstrap>\", line 1030, in _gcd_import\n", "  File \"<frozen importlib._bootstrap>\", line 1007, in _find_and_load\n", "  File \"<frozen importlib._bootstrap>\", line 986, in _find_and_load_unlocked\n", "  File \"<frozen importlib._bootstrap>\", line 680, in _load_unlocked\n", "  File \"<frozen importlib._bootstrap_external>\", line 850, in exec_module\n", "  File \"<frozen importlib._bootstrap>\", line 228, in _call_with_frames_removed\n", "  File \"/var/task/app.py\", line 119, in <module>\n    client.lambdaTest.list_collections()\n", "  File \"/var/task/pymongo/synchronous/database.py\", line 1182, in list_collections\n    return self._list_collections_helper(session, filter, comment, **kwargs)\n", "  File \"/var/task/pymongo/synchronous/database.py\", line 1143, in _list_collections_helper\n    return self._client._retryable_read(\n", "  File \"/var/task/pymongo/synchronous/mongo_client.py\", line 2047, in _retryable_read\n    return self._retry_internal(\n", "  File \"/var/task/pymongo/_csot.py\", line 125, in csot_wrapper\n    return func(self, *args, **kwargs)\n", "  File \"/var/task/pymongo/synchronous/mongo_client.py\", line 2003, in _retry_internal\n    return _ClientConnectionRetryable(\n", "  File \"/var/task/pymongo/synchronous/mongo_client.py\", line 2765, in run\n    return self._read() if self._is_read else self._write()\n", "  File \"/var/task/pymongo/synchronous/mongo_client.py\", line 2910, in _read\n    self._server = self._get_server()\n", "  File \"/var/task/pymongo/synchronous/mongo_client.py\", line 2858, in _get_server\n    return self._client._select_server(\n", "  File \"/var/task/pymongo/synchronous/mongo_client.py\", line 1820, in _select_server\n    topology = self._get_topology()\n", "  File \"/var/task/pymongo/synchronous/mongo_client.py\", line 1758, in _get_topology\n    self._resolve_srv()\n", "  File \"/var/task/pymongo/synchronous/mongo_client.py\", line 910, in _resolve_srv\n    res = uri_parser._parse_srv(\n", "  File \"/var/task/pymongo/synchronous/uri_parser.py\", line 168, in _parse_srv\n    nodes = dns_resolver.get_hosts()\n", "  File \"/var/task/pymongo/synchronous/srv_resolver.py\", line 157, in get_hosts\n    _, nodes = self._get_srv_response_and_hosts(True)\n", "  File \"/var/task/pymongo/synchronous/srv_resolver.py\", line 131, in _get_srv_response_and_hosts\n    results = self._resolve_uri(encapsulate_errors)\n", "  File \"/var/task/pymongo/synchronous/srv_resolver.py\", line 125, in _resolve_uri\n    raise ConfigurationError(str(exc)) from None\n"]}Exiting due to FunctionError!
      

            Assignee:
            Steve Silvester
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: