chatgpt-dingtalk
chatgpt-dingtalk copied to clipboard
🙋 本地执行go main.go日志显示回调参数为空,以至于无法正常解析,请检查原因?
问题反馈
本地执行go main.go 浏览器打开相应地址显示空白页面,控制台显示:日志显示回调参数为空,以至于无法正常解析,请检查原因 确认报错还没走到”从钉钉回调过来的内容为空,根据过往的经验,或许重新创建一下机器人,能解决这个问题“这个报错信息。 确认openai的key已配置且能够正常调用。
另外采用以下配置无法部署至阿里云的Serverless上,求解。报错信息为: "Function instance exited unexpectedly(code 8, message:exec format error) with start command './main '. Logs:"
edition: 1.0.0
name: nice
access: "xxx"
vars:
region: "cn-hongkong"
services:
optds:
component: fc
actions:
pre-deploy:
- run: go mod tidy
path: .
- run: go build main.go
path: .
props:
region: ${vars.region}
service:
name: "bot"
description: "Serverless Devs Website Service"
function:
name: "dingding-bot"
description: 'a simple bot by serverless devs'
codeUri: '.'
cAPort: 9000
customRuntimeConfig:
command:
- ./main
environmentVariables: {}
handler: index.handler
instanceConcurrency: 20
instanceType: e1
memorySize: 128
runtime: custom
timeout: 120
internetAccess: true
triggers:
- name: httpTrigger
type: http
config:
authType: anonymous
methods:
- GET
- POST
customDomains:
- domainName: auto
protocol: HTTP
routeConfigs:
- path: /*
methods:
- GET
- POST
serverless的部署方案我还没体验过,下一步有时间会做一下体验,并记录文档。
你 go run main.go 的这个信息给的不太够,是否严格按照readme配置的
@eryajf 都是按照readme配置的,是直接把项目拉下来改了api_key,其他没有配置。现在又重新拉了一下这个包,进去直接白页了。