Skip to content

Bug mongodb&asciidoc plugins #39291

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

Open
2 tasks done
salvonapo1972 opened this issue Apr 25, 2025 · 0 comments
Open
2 tasks done

Bug mongodb&asciidoc plugins #39291

salvonapo1972 opened this issue Apr 25, 2025 · 0 comments
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby

Comments

@salvonapo1972
Copy link

salvonapo1972 commented Apr 25, 2025

Preliminary Checks

Description

Hi all,I've a problem with mongodb-source-plugin and gatsby-transformer-asciidoc.
When I put both in gatsby-config.js I have this error:

(node:96340) [DEP0170] DeprecationWarning: The URL
mongodb://gatsbyjsmongodbuser:[email protected]:27017,ac-lhgd1vv-shard-00-00.lldnjpu.mongodb.net:27017,ac-lhgd1vv-sha
rd-00-01.lldnjpu.mongodb.net:27017/?authSource=admin&replicaSet=atlas-ljxvgd-shard-0&connectTimeoutMS=1200000%2FCampionatoserieA&ssl=true is invalid. Future
versions of Node.js will throw an error.
(Use node --trace-deprecation ... to show where the warning was created)

⠋ source and transform nodes
D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\yoga-layout-prebuilt\yoga-layout\build\Release\nbind.js:53
throw ex;
^

TypeError: this.hosts.map is not a function
at new ServerDescription (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\core\sdam\server_description.js:93:29)
at Monitor. (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\core\sdam\server.js:156:9)
at Monitor.emit (node:events:536:35)
at D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\core\sdam\monitor.js:292:13
at callback (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\core\connection\connect.js:75:5)
at D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\core\connection\connect.js:165:7
at MessageStream.messageHandler (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\cmap\connection.js:308:5)
at MessageStream.emit (node:events:524:28)
at processIncomingData (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\cmap\message_stream.js:144:12)
at MessageStream._write (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\cmap\message_stream.js:42:5)
at writeOrBuffer (node:internal/streams/writable:572:12)
at _write (node:internal/streams/writable:501:10)
at Writable.write (node:internal/streams/writable:510:10)
at TLSSocket.ondata (node:internal/streams/readable:1009:22)
at TLSSocket.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)

Node.js v22.12.0

P.S.:Commenting gatsby-transformer-asciidoc there are no problems

Reproduction Link

https://github.com/salvonapo1972/GatsbyTest

Steps to Reproduce

1.Create a starter gatsbyjs project:npx gatsby new gatsby-starter-default https://github.com/gatsbyjs/gatsby-starter-default
2.Adding mongodb-source-plugin and gatsby-transformer-asciidoc plugins to starter project and gatsby-config.js
3.execute npm run develop
4.Commenting gatsby-transformer-asciidoc there are no problems

Expected Result

Build is ok

Actual Result

Build has errors with mongodb plugin

(node:96340) [DEP0170] DeprecationWarning: The URL
mongodb://gatsbyjsmongodbuser:[email protected]:27017,ac-lhgd1vv-shard-00-00.lldnjpu.mongodb.net:27017,ac-lhgd1vv-sha
rd-00-01.lldnjpu.mongodb.net:27017/?authSource=admin&replicaSet=atlas-ljxvgd-shard-0&connectTimeoutMS=1200000%2FCampionatoserieA&ssl=true is invalid. Future
versions of Node.js will throw an error.
(Use node --trace-deprecation ... to show where the warning was created)

⠋ source and transform nodes
D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\yoga-layout-prebuilt\yoga-layout\build\Release\nbind.js:53
throw ex;
^

TypeError: this.hosts.map is not a function
at new ServerDescription (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\core\sdam\server_description.js:93:29)
at Monitor. (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\core\sdam\server.js:156:9)
at Monitor.emit (node:events:536:35)
at D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\core\sdam\monitor.js:292:13
at callback (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\core\connection\connect.js:75:5)
at D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\core\connection\connect.js:165:7
at MessageStream.messageHandler (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\cmap\connection.js:308:5)
at MessageStream.emit (node:events:524:28)
at processIncomingData (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\cmap\message_stream.js:144:12)
at MessageStream._write (D:\Progetti\Gatsby\gatsbystarter\gatsby-starter-default\node_modules\mongodb\lib\cmap\message_stream.js:42:5)
at writeOrBuffer (node:internal/streams/writable:572:12)
at _write (node:internal/streams/writable:501:10)
at Writable.write (node:internal/streams/writable:510:10)
at TLSSocket.ondata (node:internal/streams/readable:1009:22)
at TLSSocket.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)

Node.js v22.12.0

Environment

System:

Windows:11

Config Flags

Not flags

@salvonapo1972 salvonapo1972 added the type: bug An issue or pull request relating to a bug in Gatsby label Apr 25, 2025
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

1 participant