请教一下: 函数式计算请求地址: http://api-query-wzhjecigpf.cn-hangzhou.fcapp.run/invoke 请求方式:application/json 请求参数:{"test":"test1"}
请求网关: queryApi/绑定了上面函数服务
问题:网关报如下错误: Request: Url: http://de7fb0c7e72141d29c77e16ae271566d-cn-hangzhou.alicloudapi.com/api/api/wsGetTerminalDetails/V1/1Main/vV1.1 Header: {"X-Ca-Timestamp":"1670294677395","gateway_channel":"http","X-Ca-Key":"agkApi_demo123","x-ca-nonce":"8e96d6b5-af1d-4afc-9a3c-595856f7f504","X-Ca-Request-Mode":"DEBUG","X-Ca-Stage":"TEST","X-Ca-Supervisor-Token":"eyJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzAyOTQ2NzcsIm5iZiI6MTY3MDI5NDYxNywiaXNzIjoiQWxpeXVuQXBpR2F0ZXdheSIsInJvbGUiOiJ1c2VyIiwiYXVkIjoiYXBpLXNoYXJlZC12cGMtMDAyIiwiZXhwIjoxNjcwMjk1NTc3LCJqdGkiOiI4OWI0ZDE5MDEyMWM0OTY2YTRhN2NjN2NjYTVjOGQxZSIsImFjdGlvbiI6IkRFQlVHIiwidWlkIjoiMTU1MTc3NjI5NjAyMDk2MyJ9.d_km1CA4sFrDSKa3hX5yL6aqAMScFd7QCiTxm790uhWTJFN1uMgbnMbPFsrnKWvDYN2vBKcB6xWAXYjLSz-OAh0iph6zTG9eW0TiSiz4JijEtkLL3d4WifDzi5fusrJmzSKx8YXDHEjgp5NdEqrytkDc_vFEoAT0eYpkdxxu830eV5QGyHIZzc4S0IIi42zkawa8Gfsone0ooXm7zEB91MRfZnh0XIFihnhE15QZmBBMwlb5JchlmQ_0GEdXxZksX7wUIOrAkt6ye6pzfD-SYWgEPumXJAnTTKO0dwUtpGJAuM_RyiqnZLQzhsEpUTbPJYfw3l-aKf3ttiovY20hKQ","Host":"de7fb0c7e72141d29c77e16ae271566d-cn-hangzhou.alicloudapi.com","X-Ca-Signature":"RrMbP4CfzO7tMGMKQjDtlY84M0PY4MC/ehtVDoQ9HMU=","Content-Type":"application/json; charset=utf-8","Content-MD5":"j+CJ1xOm667oejfErLzfIg==","X-Ca-Signature-Headers":"X-Ca-Timestamp,X-Ca-Key,X-Ca-Request-Mode,X-Ca-Stage,X-Ca-Supervisor-Token"} Body: "{\n "data": {\n "iccids": ["89860618000045173940"],\n "openId": "32316outo9AqmTa",\n "messageId": "1",\n "version": "1.0"\n },\n "trans_id": "2022120115241795796369",\n "app_id": "bU6cVSXPaA",\n "token": "96a4f03290efb5669375b2a3d75c67ba1ab21abcd15e511c7e6c2f7ade4221e4",\n "timestamp": "2022-12-01 15:24:17 957"\n}"
Response: 400 Date: Tue, 06 Dec 2022 02:44:37 GMT Content-Type: application/json; charset=utf-8 Content-Length: 128 Connection: keep-alive Keep-Alive: timeout=25 X-Fc-Error-Type: FCCommonError X-Ca-Request-Id: BF3AA616-91A1-4BF4-BC0F-8458EEEB73DE Content-Disposition: attachment; filename=ApiResponseForInnerDomain X-Fc-Request-Id: BF3AA616-91A1-4BF4-BC0F-8458EEEB73DE
{"ErrorCode":"InvalidArgument","ErrorMessage":"Function with http trigger(name: api) can only be invoked with http trigger URL"}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。