Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

梳理发现的一些问题 #115

Closed
2 tasks done
czy88840616 opened this issue Apr 7, 2020 · 3 comments
Closed
2 tasks done

梳理发现的一些问题 #115

czy88840616 opened this issue Apr 7, 2020 · 3 comments

Comments

@czy88840616
Copy link
Member

czy88840616 commented Apr 7, 2020

问题

  • 1、默认脚手架, f test 报错(输出http不对)

需求

  • 1、无触发器发布
@bear-ei
Copy link

bear-ei commented Apr 7, 2020

问题:

  1. 使用脚手架 f invoke -f index 选择阿里云fc运行函数后,在执行单元测试 npm test 就可以再次复现 invoke 参数 data 传递不符合预期 #107 的问题。

并且test的结果也会变成

{
  "headers": {
    "Content-Type": ["application/json; charset=utf-8"],
    "content-type": "text/plain"
  },
  "statusCode": 200,
  "body": "hello world",
  "base64Encoded": false
}

@czy88840616
Copy link
Member Author

czy88840616 commented Apr 7, 2020

对,这个是因为变成了 http 触发器,返回的数据不同了。#107 的错误似乎是因为缓存的问题。

@bear-ei
Copy link

bear-ei commented Apr 8, 2020

这里在放两个我在实际使用中比较希望有的两个需求。

需求:

  1. invoke可以直接传递event,当前业务场景基本不用http触发器,都是使用event完成业务。 比如网关调用,oss事件触发等。

  2. 可以配置控制台环境变量 , 当前发布会把控制台上的环境变量重置。

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

No branches or pull requests

2 participants