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

请教一下部署返回错误问题 #7

Closed
tamakyi opened this issue Jul 6, 2021 · 0 comments
Closed

请教一下部署返回错误问题 #7

tamakyi opened this issue Jul 6, 2021 · 0 comments

Comments

@tamakyi
Copy link

tamakyi commented Jul 6, 2021

您好,按照您在readme中的说明,我部署到了云函数上。各项设置都是正确的,但是操作:
https://api网址/项目名称/CORP_SECRET?title=%22title%22&content=%22none%22&type=text
返回的结果是:
{"errorCode":-1,"errorMessage":"user code exception caught","requestId":"2cf5f58e3d29d72350dcc4ba096","stackTrace":"invoke function failed with err: {\"Message\":\"Request check fail \",\"Type\":\"errorString\",\"StackTrace\":null,\"ShouldExit\":false}","statusCode":430}
云函数日志显示:
`START RequestId:23d279d4c6b04007bb2bc07136c40230

2021/07/06 03:12:21 event: map[headerParameters:map[] headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9 accept-encoding:gzip, deflate, br accept-language:zh-CN,zh;q=0.9 connection:keep-alive endpoint-timeout:15 host:service-xxxx-1258946465.hk.apigw.tencentcs.com requestsource:APIGW sec-ch-ua:" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91" sec-ch-ua-mobile:?0 sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:none sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 x-api-requestid:23d279dxxxxbb2bc07136c40230 x-api-scheme:https x-b3-traceid:23d279d4cxxxxbb2bc07136c40230 x-qualifier:$DEFAULT] httpMethod:GET isBase64Encoded:false path:/golang-wxpush01/CORP_SECRET pathParameters:map[SECRET:CORP_SECRET] queryString:map[content:"none" title:"title1" type:text] queryStringParameters:map[] requestContext:map[httpMethod:ANY identity:map[] path:/xxx/{SECRET} serviceId:service-olcz8t56 sourceIp:222.218.124.37 stage:release]]

2021/07/06 03:12:21 request: {GET map[content:"none" title:"title1" type:text] map[SECRET:CORP_SECRET]} json error:

2021/07/06 03:12:21 Request check fail

ERROR RequestId:23d279d4xxxxxxx07136c40230 Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"invoke function failed with err: {"Message":"Request check fail ","Type":"errorString","StackTrace":null,"ShouldExit":false}","statusCode":430}

END RequestId:23d279d4c6b04007bb2bc07136c40230

Report RequestId:23d27xxxxxxxbc07136c40230 Duration:83ms Memory:128MB MemUsage:33.628906MB`

@tamakyi tamakyi closed this as completed Jul 6, 2021
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

1 participant