Noah D
02/19/2022, 6:58 AMRDS
construct? Getting the following error message
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object
at new NodeError (internal/errors.js:322:7)
at write_ (_http_outgoing.js:722:11)
at ClientRequest.write (_http_outgoing.js:687:15)
at C:\Users\noahd\Documents\Code\MendHealth\node_modules\@serverless-stack\core\dist\runtime\server.js:110:25
at Layer.handle [as handle_request] (C:\Users\noahd\Documents\Code\MendHealth\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\noahd\Documents\Code\MendHealth\node_modules\express\lib\router\route.js:137:13)
at rawParser (C:\Users\noahd\Documents\Code\MendHealth\node_modules\body-parser\lib\types\raw.js:58:7)
at Layer.handle [as handle_request] (C:\Users\noahd\Documents\Code\MendHealth\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\noahd\Documents\Code\MendHealth\node_modules\express\lib\router\route.js:137:13)
at next (C:\Users\noahd\Documents\Code\MendHealth\node_modules\express\lib\router\route.js:131:14)
143141db-f31f-4f14-b96e-2f0e1dbf4a8a ERROR Error: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
at new NodeError (internal/errors.js:322:7)
at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:814:11)
at Loader.resolve (internal/modules/esm/loader.js:89:40)
at Loader.getModuleJob (internal/modules/esm/loader.js:242:28)
at Loader.import (internal/modules/esm/loader.js:177:28)
at importModuleDynamically (internal/modules/cjs/loader.js:1028:27)
at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
at DynamicFileMigrationProvider.getMigrations (C:\Users\noahd\Documents\Code\MendHealth\.sst\artifacts\noah-mend-storage-stack-MendCoreDB-MigrationFunction\Users\noahd\Documents\Code\MendHealth\node_modules\@serverless-stack\resources\dist\RDS_migrator\index.js:23226:115)
at async Migrator.resolveMigrations_fn (C:\Users\noahd\Documents\Code\MendHealth\.sst\artifacts\noah-mend-storage-stack-MendCoreDB-MigrationFunction\Users\noahd\Documents\Code\MendHealth\node_modules\@serverless-stack\resources\dist\RDS_migrator\index.js:22030:25)
at async Migrator.getMigrations (C:\Users\noahd\Documents\Code\MendHealth\.sst\artifacts\noah-mend-storage-stack-MendCoreDB-MigrationFunction\Users\noahd\Documents\Code\MendHealth\node_modules\@serverless-stack\resources\dist\RDS_migrator\index.js:21889:24)
Noah D
02/19/2022, 6:59 AMNoah D
02/19/2022, 7:00 AMconst devConfig: RDSScalingProps = {
autoPause: true,
minCapacity: 'ACU_2',
maxCapacity: 'ACU_2',
};
this.db = new sst.RDS(this, 'db', {
engine: 'mysql5.7',
defaultDatabaseName: 'db',
scaling: devConfig,
migrations: 'src/migrations',
});
Noah D
02/19/2022, 7:02 AMNoah D
02/19/2022, 7:02 AM0.65.3
Frank
Noah D
02/19/2022, 7:30 AMthdxr
02/19/2022, 12:12 PMthdxr
02/19/2022, 12:13 PMthdxr
02/19/2022, 12:13 PMthdxr
02/19/2022, 12:14 PMthdxr
02/19/2022, 12:15 PMNoah D
02/19/2022, 8:30 PMJay
Noah D
02/22/2022, 6:43 AMthdxr
02/22/2022, 1:32 PMthdxr
02/22/2022, 6:32 PMNoah D
02/23/2022, 11:43 AM