You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
TypeError: arn.replace is not a function
at ServerlessLayers.logArn (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\lib\index.js:779:18)
at forEach (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\src\index.js:406:76)
at Array.forEach ()
at forEach (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\src\index.js:401:14)
at Array.forEach ()
at ServerlessLayers._callee7$ (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\src\index.js:392:41)
at tryCatch (C:\Graphane\serverless\api-mds-private\node_modules\regenerator-runtime\runtime.js:63:40)
at Generator.invoke [as _invoke] (C:\Graphane\serverless\api-mds-private\node_modules\regenerator-runtime\runtime.js:293:22)
at Generator.next (C:\Graphane\serverless\api-mds-private\node_modules\regenerator-runtime\runtime.js:118:21)
at asyncGeneratorStep (C:\Graphane\serverless\api-mds-private\node_modules@babel\runtime\helpers\asyncToGenerator.js:3:24)
at _next (C:\Graphane\serverless\api-mds-private\node_modules@babel\runtime\helpers\asyncToGenerator.js:25:9)
at C:\Graphane\serverless\api-mds-private\node_modules@babel\runtime\helpers\asyncToGenerator.js:32:7
at new Promise ()
at ServerlessLayers. (C:\Graphane\serverless\api-mds-private\node_modules@babel\runtime\helpers\asyncToGenerator.js:21:12)
at ServerlessLayers.finalizeDeploy (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\lib\index.js:735:32)
at ServerlessLayers. (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\src\index.js:34:26)
at ServerlessLayers.tryCatcher (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:456:21)
The text was updated successfully, but these errors were encountered:
When using serverless core layers feature in combinaision with this plugin a "TypeError: arn.replace is not a function" is thrown by logArn() function
Sample configuration:
Pre-build layer
layers:
postgresqlDriver:
package:
artifact: layer-linux-postgresql-driver.zip
Plugin configuration
custom:
AWS layers for Python requirements
serverless-layers:
# Commons for all lambdas
- common:
compileDir: .serverless/layers/common
dependenciesPath: src/layers/common/requirements.txt
# Per function requirements
- tool:
compileDir: .serverless/layers/tool
functions:
- items_get
dependenciesPath: src/layers/tool/requirements.txt
Function with prebuilt layer + "serverless-layers" plugin layers
functions:
items_get:
handler: src/v1/items/get/get.get
layers:
- { Ref: PostgresqlDriverLambdaLayer }
Error:
TypeError: arn.replace is not a function
at ServerlessLayers.logArn (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\lib\index.js:779:18)
at forEach (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\src\index.js:406:76)
at Array.forEach ()
at forEach (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\src\index.js:401:14)
at Array.forEach ()
at ServerlessLayers._callee7$ (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\src\index.js:392:41)
at tryCatch (C:\Graphane\serverless\api-mds-private\node_modules\regenerator-runtime\runtime.js:63:40)
at Generator.invoke [as _invoke] (C:\Graphane\serverless\api-mds-private\node_modules\regenerator-runtime\runtime.js:293:22)
at Generator.next (C:\Graphane\serverless\api-mds-private\node_modules\regenerator-runtime\runtime.js:118:21)
at asyncGeneratorStep (C:\Graphane\serverless\api-mds-private\node_modules@babel\runtime\helpers\asyncToGenerator.js:3:24)
at _next (C:\Graphane\serverless\api-mds-private\node_modules@babel\runtime\helpers\asyncToGenerator.js:25:9)
at C:\Graphane\serverless\api-mds-private\node_modules@babel\runtime\helpers\asyncToGenerator.js:32:7
at new Promise ()
at ServerlessLayers. (C:\Graphane\serverless\api-mds-private\node_modules@babel\runtime\helpers\asyncToGenerator.js:21:12)
at ServerlessLayers.finalizeDeploy (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\lib\index.js:735:32)
at ServerlessLayers. (C:\Graphane\serverless\api-mds-private\node_modules\serverless-layers\src\index.js:34:26)
at ServerlessLayers.tryCatcher (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues (C:\Graphane\serverless\api-mds-private\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:456:21)
The text was updated successfully, but these errors were encountered: