René's URL Explorer Experiment


Title: No such file error while using Custom Image for Lambda · Issue #768 · serverless/serverless-python-requirements · GitHub

Open Graph Title: No such file error while using Custom Image for Lambda · Issue #768 · serverless/serverless-python-requirements

X Title: No such file error while using Custom Image for Lambda · Issue #768 · serverless/serverless-python-requirements

Description: Are you certain it's a bug? Yes, it looks like a bug Are you using the latest plugin release? Yes, I'm using the latest plugin release Is there an existing issue for this? I have searched existing issues, it hasn't been reported yet Issu...

Open Graph Description: Are you certain it's a bug? Yes, it looks like a bug Are you using the latest plugin release? Yes, I'm using the latest plugin release Is there an existing issue for this? I have searched existing ...

X Description: Are you certain it's a bug? Yes, it looks like a bug Are you using the latest plugin release? Yes, I'm using the latest plugin release Is there an existing issue for this? I have searched e...

Opengraph URL: https://github.com/serverless/serverless-python-requirements/issues/768

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No such file error while using Custom Image for Lambda","articleBody":"### Are you certain it's a bug?\n\n- [X] Yes, it looks like a bug\n\n### Are you using the latest plugin release?\n\n- [X] Yes, I'm using the latest plugin 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\nWhen we've configured lambda with a custom docker image, and also configured python requirements layer using `serverless-python-requirements` (of course for custom image functions we can't attach a layer)\r\n\r\nHere expected to deploy the application without error, or at least show an error/warning to convey that layers are not supported for custom image functions, instead I got the error.\r\n\r\nHere better to add one validation, which will raise an error if we configure the layers for custom image functions.\n\n### Service configuration (serverless.yml) content\n\n```yaml\nservice: my-service\r\n\r\nuseDotenv: true\r\n\r\nprovider:\r\n  name: aws\r\n  runtime: python3.9\r\n  stage: ${opt:stage, 'alpha'}\r\n  apiName: ${self:service}\r\n  region: ap-south-1\r\n  memorySize: 512\r\n  timeout: 60\r\n  lambdaHashingVersion: 20201221\r\n  endpointType: regional\r\n  logs:\r\n    restApi: true\r\n    level: INFO\r\n  deploymentBucket:\r\n    blockPublicAccess: true\r\n    name: ${env:CODE_DEPLOYMENT_BUCKET}\r\n    maxPreviousDeploymentArtifacts: 3\r\n\r\nplugins:\r\n  - serverless-python-requirements\r\n\r\ncustom:\r\n  pythonRequirements:\r\n    slim: true\r\n    useDownloadCache: false\r\n    useStaticCache: false\r\n    layer:\r\n      name: ${self:service}-${self:provider.stage}-requirements-python39\r\n      description: Requirements Lambda layer for My Lambda Function\r\n      compatibleRuntimes:\r\n        - python3.9\r\n\r\n  config:\r\n    CODE_DEPLOYMENT_BUCKET: ${env:CODE_DEPLOYMENT_BUCKET}\r\n    DOCKER_IMAGE_NAME: ${env:DOCKER_IMAGE_NAME}\r\n    DOCKER_IMAGE_NAME_WITH_TAG_IN_ECR: ${aws:accountId}.dkr.ecr.${self:provider.region}.amazonaws.com/${self:custom.config.DOCKER_IMAGE_NAME}:${self:provider.stage}\r\n\r\nfunctions:\r\n  debugger_handler:\r\n    image: ${self:custom.config.DOCKER_IMAGE_NAME_WITH_TAG_IN_ECR}\r\n    name: ${self:service}-${self:provider.stage}\r\n    layers:\r\n      - {Ref: PythonRequirementsLambdaLayer}\r\n    events:\r\n      - http:\r\n          path: /mypath/\r\n          method: post\r\n          integration: lambda-proxy\r\n          cors: true\n```\n\n\n### Command name and used flags\n\nserverless deploy --stage alpha\n\n### Command output\n\n```shell\n✖ Stack my-service-alpha failed to deploy (0s)\r\nEnvironment: linux, node 12.20.1, framework 3.26.0, plugin 6.2.2, SDK 4.3.2\r\nCredentials: Local, \"default\" profile\r\nDocs:        docs.serverless.com\r\nSupport:     forum.serverless.com\r\nBugs:        github.com/serverless/serverless/issues\r\n\r\nError:\r\nError: ENOENT: no such file or directory, open '.serverless/requirements.txt'\r\n    at Object.openSync (fs.js:462:3)\r\n    at Object.readFileSync (fs.js:364:35)\r\n    at module.exports (/home/ib-developer/node_modules/sha256-file/index.js:24:19)\r\n    at sha256Path (/home/ib-developer/node_modules/serverless-python-requirements/lib/shared.js:134:10)\r\n    at ServerlessPythonRequirements.zipRequirements (/home/ib-developer/node_modules/serverless-python-requirements/lib/layer.js:16:23)\r\n    at ServerlessPythonRequirements.tryCatcher (/home/ib-developer/node_modules/bluebird/js/release/util.js:16:23)\r\n    at Promise._settlePromiseFromHandler (/home/ib-developer/node_modules/bluebird/js/release/promise.js:547:31)\r\n    at Promise._settlePromise (/home/ib-developer/node_modules/bluebird/js/release/promise.js:604:18)\r\n    at Promise._settlePromiseCtx (/home/ib-developer/node_modules/bluebird/js/release/promise.js:641:10)\r\n    at _drainQueueStep (/home/ib-developer/node_modules/bluebird/js/release/async.js:97:12)\r\n    at _drainQueue (/home/ib-developer/node_modules/bluebird/js/release/async.js:86:9)\r\n    at Async._drainQueues (/home/ib-developer/node_modules/bluebird/js/release/async.js:102:5)\r\n    at Immediate.Async.drainQueues [as _onImmediate] (/home/ib-developer/node_modules/bluebird/js/release/async.js:15:14)\r\n    at processImmediate (internal/timers.js:461:21)\r\n\r\n1 deprecation found: run 'serverless doctor' for more details\n```\n\n\n### Environment information\n\n```shell\nFramework Core: 3.26.0\r\nPlugin: 6.2.2\r\nSDK: 4.3.2\n```\n","author":{"url":"https://github.com/DilLip-Chowdary-Codes","@type":"Person","name":"DilLip-Chowdary-Codes"},"datePublished":"2023-04-29T06:53:24Z","url":"https://github.com/serverless/serverless-python-requirements/issues/768"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6840db23-4a05-1453-c785-2e9af1bcbb49
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA470:49A58:194619:21D2FC:6B042FEF
html-safe-nonce73556cb395d42f9451dca4b5943e68f70e51c279f5b07b7c5d578cdfded89f10
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDcwOjQ5QTU4OjE5NDYxOToyMUQyRkM6NkIwNDJGRUYiLCJ2aXNpdG9yX2lkIjoiMTA5NzgwNjMxMjgwNjU1OTcyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc7e089798bbd293cd691d005ce31cc909c138ab9f923f35c99d24d2f5a4861d7
hovercard-subject-tagissue:1689423368
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/serverless/serverless-python-requirements/768/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e037222a0cfdc688e1c9bacaa67d9ecd6aa4933ee2fa732d3f126c52a7fa9014/serverless/serverless-python-requirements/issues/768
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e037222a0cfdc688e1c9bacaa67d9ecd6aa4933ee2fa732d3f126c52a7fa9014/serverless/serverless-python-requirements/issues/768
og:image:altAre you certain it's a bug? Yes, it looks like a bug Are you using the latest plugin release? Yes, I'm using the latest plugin release Is there an existing issue for this? I have searched existing ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDilLip-Chowdary-Codes
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
go-importgithub.com/serverless/serverless-python-requirements git https://github.com/serverless/serverless-python-requirements.git
octolytics-dimension-user_id13742415
octolytics-dimension-user_loginserverless
octolytics-dimension-repository_id76508594
octolytics-dimension-repository_nwoserverless/serverless-python-requirements
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id76508594
octolytics-dimension-repository_network_root_nwoserverless/serverless-python-requirements
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/serverless/serverless-python-requirements/issues/768#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fserverless%2Fserverless-python-requirements%2Fissues%2F768
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fserverless%2Fserverless-python-requirements%2Fissues%2F768
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=serverless%2Fserverless-python-requirements
Reloadhttps://github.com/serverless/serverless-python-requirements/issues/768
Reloadhttps://github.com/serverless/serverless-python-requirements/issues/768
Reloadhttps://github.com/serverless/serverless-python-requirements/issues/768
serverlesshttps://github.com/serverless
serverless-python-requirementshttps://github.com/serverless/serverless-python-requirements
Codehttps://github.com/serverless/serverless-python-requirements
Issues177 (177)https://github.com/serverless/serverless-python-requirements/issues
Pull requests18 (18)https://github.com/serverless/serverless-python-requirements/pulls
Discussionshttps://github.com/serverless/serverless-python-requirements/discussions
Actionshttps://github.com/serverless/serverless-python-requirements/actions
Security and qualityhttps://github.com/serverless/serverless-python-requirements/security
Insightshttps://github.com/serverless/serverless-python-requirements/insights
https://github.com/serverless/serverless-python-requirements
No such file error while using Custom Image for Lambdahttps://github.com/serverless/serverless-python-requirements/issues/768#top
https://github.com/DilLip-Chowdary-Codes
DilLip-Chowdary-Codeshttps://github.com/DilLip-Chowdary-Codes
on Apr 29, 2023https://github.com/serverless/serverless-python-requirements/issues/768#issue-1689423368
https://github.com/DilLip-Chowdary-Codes
DilLip-Chowdary-Codeshttps://github.com/DilLip-Chowdary-Codes
on May 31, 2023https://github.com/serverless/serverless-python-requirements/issues/768#issuecomment-1569972567
@serverlesshttps://github.com/serverless
@pgrzesikhttps://github.com/pgrzesik
Sign up for freehttps://github.com/signup?return_to=https://github.com/serverless/serverless-python-requirements/issues/768
Sign in to commenthttps://github.com/login?return_to=https://github.com/serverless/serverless-python-requirements/issues/768
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.