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

bot can't reply,ip 8.217.51.178 is denied by app setting #71

Open
wonb168 opened this issue Apr 12, 2023 · 2 comments
Open

bot can't reply,ip 8.217.51.178 is denied by app setting #71

wonb168 opened this issue Apr 12, 2023 · 2 comments

Comments

@wonb168
Copy link

wonb168 commented Apr 12, 2023

when I asked bot, it can't reply,
and I check the log in aircode, ip 8.217.51.178 is denied by app setting, how to resolve this? thank you!

10:47:29.911
[POST] https://ze6ryzadex.hk.aircode.run/hello -> hello.js
10:47:29.985
[CF] question: how to chat with openai in feishu?
10:47:48.510
[POST] https://ze6ryzadex.hk.aircode.run/hello -> hello.js
10:47:48.518
[CF] skip repeat event
10:47:48.518
[RESPONSE] Status code: 200, Duration: 8 ms
10:48:15.529
[error]: [
  [
    {
      message: 'Request failed with status code 400',
      config: [Object],
      request: [Object],
      response: [Object]
    },
    {
      code: 99991401,
      msg: 'ip 8.217.51.178 is denied by app setting',
      error: [Object]
    }
  ]
]
10:48:15.529
[CF] send message to feishu error
10:48:15.548
[RESPONSE] Status code: 200, Duration: 45637 ms
@wonb168
Copy link
Author

wonb168 commented Apr 12, 2023

机器人那设白名单,设完了出现新的错误:
Cannot readproperties of undefined (reading 'data')at getOpenAIReply
完整日志:

14:39:23.077
[POST] https://ze6ryzadex.hk.aircode.run/hello -> hello.js
14:39:23.159
[CF] question: how to chat with openai in feishu?
14:39:41.629
[POST] https://ze6ryzadex.hk.aircode.run/hello -> hello.js
14:39:41.642
[CF] skip repeat event
14:39:41.642
[RESPONSE] Status code: 200, Duration: 14 ms
14:40:13.285
TypeError: Cannot read properties of undefined (reading 'data')
    at getOpenAIReply (/code/functions/hello.js:168:24)
    at async handleReply (/code/functions/hello.js:266:26)
    at async module.exports (/code/functions/hello.js:327:14)
14:40:13.286
[RESPONSE] Status code: 500, Duration: 50209 ms

@bestony
Copy link
Owner

bestony commented Apr 12, 2023

点一下 debug 看一下结果?

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

2 participants