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

🙋 本地执行go main.go日志显示回调参数为空,以至于无法正常解析,请检查原因? #149

Open
zhilianbi520 opened this issue Mar 31, 2023 · 2 comments
Labels
question Further information is requested

Comments

@zhilianbi520
Copy link

zhilianbi520 commented Mar 31, 2023

问题反馈

本地执行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
@zhilianbi520 zhilianbi520 added the question Further information is requested label Mar 31, 2023
@eryajf
Copy link
Owner

eryajf commented Apr 1, 2023

serverless的部署方案我还没体验过,下一步有时间会做一下体验,并记录文档。

你 go run main.go 的这个信息给的不太够,是否严格按照readme配置的

@zhilianbi520
Copy link
Author

@eryajf 都是按照readme配置的,是直接把项目拉下来改了api_key,其他没有配置。现在又重新拉了一下这个包,进去直接白页了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants