Comments (3)
后续:在配置文件里和云函数里面都把端口改了,注册成功了。但是现在问题是给应用发消息,得不到回复。。
from chatgpt-wechat.
可信ip已经配置为服务器公网ip,chat-web-1日志如下:
Starting server at 0.0.0.0:8900...
{"@timestamp":"2023-04-13T04:13:27.857+08:00","caller":"sqlx/stmt.go:132","content":"sql query: SELECT id
,name
,email
,password
,created_at
,updated_at
FROM user
WHERE email = '[email protected]'","duration":"66.1ms","level":"info","span":"ce9a4e3c9e336d59","trace":"16d0d4f731ba58b4f576c5735ecf35bd"}
{"@timestamp":"2023-04-13T04:13:28.036+08:00","caller":"sqlx/stmt.go:132","content":"sql exec: insert into user
(name
,email
,password
) values ('deemo', '[email protected]', '$2a$10$yYvpHOvhcGFZjLgTf9nBHuLTdXQxrn8ZYDjDKj9UCt/95XJhAJrHy')","duration":"16.4ms","level":"info","span":"21d85fa04f233e61","trace":"16d0d4f731ba58b4f576c5735ecf35bd"}
{"@timestamp":"2023-04-13T04:13:28.092+08:00","caller":"response/response.go:63","content":"","level":"info","response":{"code":200,"msg":"成功","data":{"message":"注册成功,去登录吧~"}},"span":"1a9caccaa8ca02b8","trace":"16d0d4f731ba58b4f576c5735ecf35bd"}
{"@timestamp":"2023-04-13T04:13:28.092+08:00","caller":"handler/loghandler.go:137","content":"[HTTP] 200 - POST /api/user/register - 172.18.0.1:43980 - curl/7.74.0 - slowcall(635.9ms)","duration":"635.9ms","level":"slow","span":"1a9caccaa8ca02b8","trace":"16d0d4f731ba58b4f576c5735ecf35bd"}
{"@timestamp":"2023-04-13T04:13:28.092+08:00","caller":"accesslog/accesslog.go:28","content":"","level":"info","request":{"url":"/api/user/register","method":"POST","query":"","body":"{"email": "[email protected]","name": "deemo","password": "deemo"}","header":{"Accept":["/"],"Content-Length":["71"],"Content-Type":["application/json"],"User-Agent":["curl/7.74.0"]},"const":-364},"span":"1a9caccaa8ca02b8","trace":"16d0d4f731ba58b4f576c5735ecf35bd"}
{"@timestamp":"2023-04-13T04:13:28.093+08:00","caller":"handler/loghandler.go:160","content":"[HTTP] 200 - POST /api/user/register - 172.18.0.1:43980 - curl/7.74.0","duration":"635.9ms","level":"info","span":"1a9caccaa8ca02b8","trace":"16d0d4f731ba58b4f576c5735ecf35bd"}
{"@timestamp":"2023-04-13T04:14:39.802+08:00","caller":"sqlx/stmt.go:132","content":"sql query: SELECT id
,name
,email
,password
,created_at
,updated_at
FROM user
WHERE email = '[email protected]'","duration":"7.8ms","level":"info","span":"93d1a68670e2e5fc","trace":"c55d06a50e19b58f22fe486896fdcd8d"}
{"@timestamp":"2023-04-13T04:14:39.945+08:00","caller":"response/response.go:63","content":"","level":"info","response":{"code":200,"msg":"成功","data":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDcyNTA0NzksImlhdCI6MTY4MTMzMDQ3OSwidXNlcklkIjoxfQ.pUcPWnW8cETNgHLZcIpDliAGr2ILICK1j7dIIteBrWA"}},"span":"e7b4348f013d388a","trace":"c55d06a50e19b58f22fe486896fdcd8d"}
{"@timestamp":"2023-04-13T04:14:39.946+08:00","caller":"accesslog/accesslog.go:28","content":"","level":"info","request":{"url":"/api/user/login","method":"POST","query":"","body":"{"email": "[email protected]","password": "deemo"}","header":{"Accept":["/"],"Content-Length":["55"],"Content-Type":["application/json"],"User-Agent":["curl/7.74.0"]},"const":151},"span":"e7b4348f013d388a","trace":"c55d06a50e19b58f22fe486896fdcd8d"}
{"@timestamp":"2023-04-13T04:14:39.946+08:00","caller":"handler/loghandler.go:160","content":"[HTTP] 200 - POST /api/user/login - 172.18.0.1:60100 - curl/7.74.0","duration":"151.4ms","level":"info","span":"e7b4348f013d388a","trace":"c55d06a50e19b58f22fe486896fdcd8d"}
from chatgpt-wechat.
破案了,是云函数那里的req_host配置里面多了个英文句号。。
from chatgpt-wechat.
Related Issues (20)
- 大佬,实现群聊有计划吗 HOT 4
- 大佬,这2个端口可以改吗? 可以自己定义吗 HOT 1
- 使用Gemini API报错 HOT 2
- 我端口是8080 如何修改配置 HOT 1
- 微信客服错误 HOT 2
- Gemini pro support HOT 17
- clear命令怎么失效了 HOT 2
- 可否优化返回消息里直接显示图片而不是图片链接? HOT 1
- 在启用流式回复 Stream: true 后,返回的消息顺序不正确。 HOT 1
- 建议在配置文件增加企业微信api地址 HOT 1
- 企业微信客服报错 HOT 5
- bug:已对接one-api,由于代码内限制,无法使用除openAI,gemini之外的模型
- build的时候总是卡住 HOT 3
- gpt-4 不存在 HOT 4
- 老大,有空请看看xtekky/gpt4free,很火且无需API
- 有arm版本的吗
- 考虑加入对国产的开源llmm模型 chatlm6b支持吗?
- 企微welcome消息不生效 HOT 1
- docker-compose build 报错 HOT 1
- 请教企业微信客服功能 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-wechat.