I am using gatsby as a static site generator with drupal as the backend. The data is retrieved with the gatsby-source-drupal plugin. My configuration for the plugin is as follows:
module.exports = {
//Excluded irrelevant configurations
plugins: [
{
resolve: 'gatsby-source-drupal',
options: {
baseUrl: 'https://example.org',
apiBase: 'jsonapi',
concurrentFileRequests: 120,
disallowedLinkTypes: [
//Standard disallows
'self',
'describedby',
//Erroneous resources
'block--block',
'field_storage_config--field_storage_config',
'menu--menu'
],
},
},
],
};
Now I have a strange phenomenon that I can retrieve all the data using my host machine but this fails within a docker container with the error:
ERROR #11321 PLUGIN
"gatsby-source-drupal" threw an error while running the sourceNodes lifecycle:
connect ETIMEDOUT <Ip Address>:443
This failure happens for random backend collections, eliminating the possibility that a specific collection is problematic. Retrieving the failing resource within the container with curl
is successful. I don't think that a server limit is a problem too, since the data retrieval functions on my host machine. I compared the memory usage for both node installations (v12) using process.memoryUsage()
and got similar results.
Could there be a difference between the node process in the host machine and docker container which could be causing problems?