Title: Function Docker Image: ERR_INVALID_ARG_TYPE · Issue #774 · serverless/serverless-python-requirements · GitHub
Open Graph Title: Function Docker Image: ERR_INVALID_ARG_TYPE · Issue #774 · serverless/serverless-python-requirements
X Title: Function Docker Image: ERR_INVALID_ARG_TYPE · Issue #774 · serverless/serverless-python-requirements
Description: Are you certain it's a bug? Yes, it looks like a bug Is the issue caused by a plugin? It is not a plugin issue Are you using the latest v3 release? Yes, I'm using the latest v3 release Is there an existing issue for this? I have searched...
Open Graph Description: Are you certain it's a bug? Yes, it looks like a bug Is the issue caused by a plugin? It is not a plugin issue Are you using the latest v3 release? Yes, I'm using the latest v3 release Is there an ...
X Description: Are you certain it's a bug? Yes, it looks like a bug Is the issue caused by a plugin? It is not a plugin issue Are you using the latest v3 release? Yes, I'm using the latest v3 release Is t...
Opengraph URL: https://github.com/serverless/serverless-python-requirements/issues/774
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Function Docker Image: ERR_INVALID_ARG_TYPE","articleBody":"### Are you certain it's a bug?\n\n- [X] Yes, it looks like a bug\n\n### Is the issue caused by a plugin?\n\n- [X] It is not a plugin issue\n\n### Are you using the latest v3 release?\n\n- [X] Yes, I'm using the latest v3 release\n\n### Is there an existing issue for this?\n\n- [X] I have searched existing issues, it hasn't been reported yet\n\n### Issue description\n\nIf I try to provide an image for a function with `name`, `command`, and `entryPoint` I am unable to deploy the function.\r\n\r\nIf I remove all image related stuff and just provide and entrypoint I am able to deploy:\r\n```python\r\nfunctions:\r\n aggregation:\r\n handler: handler_aggregation.handler_aggregation\r\n module: commons\r\n events:\r\n - httpApi:\r\n path: /get/aggregation\r\n method: get\r\n```\n\n### Service configuration (serverless.yml) content\n\n```yaml\nservice: aggregation\r\n\r\nframeworkVersion: '3'\r\n\r\nprovider:\r\n name: aws\r\n runtime: python3.8\r\n region: eu-west-1\r\n memorySize: 256\r\n ecr:\r\n images:\r\n baseimage:\r\n path: ./\r\n\r\nfunctions:\r\n aggregation:\r\n image:\r\n name: baseimage\r\n command:\r\n - handler_aggregation.handler_aggregation\r\n entryPoint:\r\n - '/lambda-entrypoint.sh'\r\n events:\r\n - httpApi:\r\n path: /get/aggregation\r\n method: get\r\n\r\nplugins:\r\n - serverless-python-requirements\n```\n\n\n### Command name and used flags\n\nSTAGE=development sls deploy\n\n### Command output\n\n```shell\nEnvironment: darwin, node 19.7.0, framework 3.27.0 (local) 3.30.1v (global), plugin 6.2.3, SDK 4.3.2\r\nCredentials: Local, environment variables\r\nDocs: docs.serverless.com\r\nSupport: forum.serverless.com\r\nBugs: github.com/serverless/serverless/issues\r\n\r\nError:\r\nTypeError [ERR_INVALID_ARG_TYPE]: The \"path\" argument must be of type string or an instance of Buffer or URL. Received undefined\r\n at readFile (node:fs:393:10)\r\n at go$readFile (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/graceful-fs/graceful-fs.js:118:14)\r\n at Object.readFile (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/graceful-fs/graceful-fs.js:115:12)\r\n at Object.readFile (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/universalify/index.js:5:57)\r\n at Object.tryCatcher (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/bluebird/js/release/util.js:16:23)\r\n at Object.ret [as readFileAsync] (eval at makeNodePromisifiedEval (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/bluebird/js/release/promisify.js:184:12), \u003canonymous>:14:23)\r\n at injectRequirements (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/serverless-python-requirements/lib/inject.js:23:6)\r\n at ServerlessPythonRequirements.injectAllRequirements (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/serverless-python-requirements/lib/inject.js:145:13)\r\n at ServerlessPythonRequirements.\u003canonymous> (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/serverless-python-requirements/index.js:222:43)\r\n at ServerlessPythonRequirements.tryCatcher (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/bluebird/js/release/util.js:16:23)\r\n at Promise._settlePromiseFromHandler (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/bluebird/js/release/promise.js:547:31)\r\n at Promise._settlePromise (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/bluebird/js/release/promise.js:604:18)\r\n at Promise._settlePromise0 (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/bluebird/js/release/promise.js:649:10)\r\n at Promise._settlePromises (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/bluebird/js/release/promise.js:729:18)\r\n at _drainQueueStep (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/bluebird/js/release/async.js:93:12)\r\n at _drainQueue (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/bluebird/js/release/async.js:86:9)\r\n at Async._drainQueues (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/bluebird/js/release/async.js:102:5)\r\n at Async.drainQueues [as _onImmediate] (/Users/oliverborchers/Desktop/Programming.nosync/datapipelines/video_metrics/node_modules/bluebird/js/release/async.js:15:14)\r\n at process.processImmediate (node:internal/timers:475:21)\n```\n\n\n### Environment information\n\n```shell\nRunning \"serverless\" from node_modules\r\nFramework Core: 3.27.0 (local) 3.30.1 (global)\r\nPlugin: 6.2.3\r\nSDK: 4.3.2\n```\n","author":{"url":"https://github.com/oborchers","@type":"Person","name":"oborchers"},"datePublished":"2023-05-12T10:42:23Z","url":"https://github.com/serverless/serverless-python-requirements/issues/774"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8eb26e57-ad76-2a7e-4fa7-8c784a81cf20 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D14:3F3939:A2F724:E45182:6B04302F |
| html-safe-nonce | ad71ad7428249bb3c836de5f56e160053d7d7a96076bd496be2b082a67bf46dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDE0OjNGMzkzOTpBMkY3MjQ6RTQ1MTgyOjZCMDQzMDJGIiwidmlzaXRvcl9pZCI6Ijc4NTc4MjAwNjQ4NjE2NjMyNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3c80a98b82822519673fd3c6834cf3899136aeca02bf6a90c8c8d64437539db9 |
| hovercard-subject-tag | issue:1710247663 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/serverless/serverless-python-requirements/774/issue_layout |
| twitter:image | https://opengraph.githubassets.com/67c88ffdd80bd7eb524041a07cb392ff2162ae85e995d4c4b7139ed0ff22aaae/serverless/serverless-python-requirements/issues/774 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67c88ffdd80bd7eb524041a07cb392ff2162ae85e995d4c4b7139ed0ff22aaae/serverless/serverless-python-requirements/issues/774 |
| og:image:alt | Are you certain it's a bug? Yes, it looks like a bug Is the issue caused by a plugin? It is not a plugin issue Are you using the latest v3 release? Yes, I'm using the latest v3 release Is there an ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oborchers |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/serverless/serverless-python-requirements git https://github.com/serverless/serverless-python-requirements.git |
| octolytics-dimension-user_id | 13742415 |
| octolytics-dimension-user_login | serverless |
| octolytics-dimension-repository_id | 76508594 |
| octolytics-dimension-repository_nwo | serverless/serverless-python-requirements |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 76508594 |
| octolytics-dimension-repository_network_root_nwo | serverless/serverless-python-requirements |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width