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

Fix MongoConnectionOptions sslCA type mismatch #8628

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

SimonRosenau
Copy link
Contributor

Description of change

This fixes the following error:

TypeError: The "path" argument must be of type string or an instance of Buffer or URL. Received an instance of Array
    at Object.openSync (node:fs:577:10)
    at Object.readFileSync (node:fs:453:35)
    at .../node_modules/mongodb/lib/operations/connect.js:257:32
    at Array.forEach (<anonymous>)
    at resolveTLSOptions (.../node_modules/mongodb/lib/operations/connect.js:255:34)
    at .../node_modules/mongodb/lib/operations/connect.js:305:5
    at .../node_modules/mongodb/lib/core/uri_parser.js:133:9
    at parseConnectionString (.../node_modules/mongodb/lib/core/uri_parser.js:744:3)
    at QueryReqWrap.callback (.../node_modules/mongodb/lib/core/uri_parser.js:127:7)
    at QueryReqWrap.onresolve [as oncomplete] (node:dns:230:10)

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

@pleerock pleerock merged commit 02400da into typeorm:master Feb 14, 2022
@pleerock
Copy link
Member

Thank you for contribution! 🎉

@SimonRosenau SimonRosenau deleted the patch-1 branch February 18, 2022 11:03
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.

2 participants