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

部署代码报400错误 #236

Open
yalishizhude opened this issue May 22, 2020 · 1 comment
Open

部署代码报400错误 #236

yalishizhude opened this issue May 22, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@yalishizhude
Copy link

Describe the bug
部署本地代码时,控制台报400错误

To Reproduce
Steps to reproduce the behavior:

  1. 点击部署按钮。

Expected behavior
上传成功

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: [e.g. Windows8, MacOS 10.14.5]
  • VSCode-insider: 1.46.0
  • Aliyun Serverless Extension Version :1.27.11

配置信息

ROSTemplateFormatVersion: '2015-09-01'
Transform: 'Aliyun::Serverless-2018-04-03'
Resources:
  gtx-order:
    Type: 'Aliyun::Serverless::Service'
    Properties:
      InternetAccess: true
    index:
      Type: 'Aliyun::Serverless::Function'
      Properties:
        Handler: index.handler
        Runtime: python3
        Timeout: 10
        MemorySize: 512
        InstanceConcurrency: 1
        EnvironmentVariables: 
          order_db_host_local: host.docker.internal
        CodeUri: ./aliyun-serverless
      Events:
        router:
          Type: HTTP
          Properties:
            AuthType: anonymous
            Methods:
              - GET
              - POST
              - PUT
              - DELETE
@yalishizhude yalishizhude added the bug Something isn't working label May 22, 2020
@sikros
Copy link

sikros commented Dec 7, 2020

我也遇到过这个问题,是因为python函数不支持单实例并发而引发的错误。
只要删掉 InstanceConcurrency: 1 这行就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants