Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While deploying: An error occured while getting a presigned URL to upload functions's archived code. #82

Open
dimitrilahaye opened this issue Jun 18, 2022 · 2 comments

Comments

@dimitrilahaye
Copy link

Hello,
I have this error during the deployment of my function:

An error occured while getting a presigned URL to upload functions's archived code.

Below are my environment information:

     Operating System:          linux
     Node Version:              14.17.6
     Framework Version:         2.72.3 (local)
     Plugin Version:            5.5.4
     SDK Version:               4.3.2
     Components Version:        3.18.2

And below my serverless.yaml

service: my-app
configValidationMode: off
variablesResolutionMode: 20210326
scwRegion: fr-par
provider:
    name: scaleway
    runtime: node14 # Available node runtimes are listed in documentation
    # Global Environment variables - used in every functions
    env:
        test: test
    # the path to the credentials file needs to be absolute
    scwToken: ${env:SCWTOKEN}
    scwProject: ${env:SCWPROJECT}

plugins:
    - serverless-scaleway-functions

package:
    patterns:
        - "!.gitignore"
        - "!.git/**"
        - './node_modules/**'

functions:
    myfunction:
        handler: dist/src/consumers/handlers/myfunctionhandler.handle

Do you have an idea of what is happening?

@dimitrilahaye
Copy link
Author

First clue found

Actualy, the size of the zip generated during deploy process is 133 Mb. By adding a console.error into the source file I can see this error:

Function source code is too large, it should be less than 8.388608e+08 MB

When I read the limitations from Scaleway, I can read the limit is 100 Mb.

I have to write a support ticket to increase it.

Maybe a better log in this plugin could be great?

@astrojuanlu
Copy link

+1 to improving the verbosity here. I found the exact same error message and can confirm that my generated .zip is too large as well:

> du -sh .serverless/*
219M	.serverless/serverless-scaleway-test.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants