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

请教 #1

Open
KIclF4 opened this issue Nov 23, 2021 · 6 comments
Open

请教 #1

KIclF4 opened this issue Nov 23, 2021 · 6 comments

Comments

@KIclF4
Copy link

KIclF4 commented Nov 23, 2021

能不能再写写详细的步骤,REDIS服务器怎么配置,不会用哎

@LittleJake
Copy link
Owner

最好是使用redislab提供的免费redis,创建账号就能获取到服务器信息。

@KIclF4
Copy link
Author

KIclF4 commented Nov 29, 2021

注册了Redislab,创建了数据库,是那个Endpoint填到环境变量里面,还是填redislabs.com的IP地址?报错了

START RequestId:6612e3b0-abfe-4b9d-8881-31fb26b84eca

任务开始

Error 110 connecting to 45.60.121.1:16697. Connection timed out.

连接Redis出错,尝试使用本地refresh_token

Starting new HTTPS connection (1): login.microsoftonline.com:443

https://login.microsoftonline.com:443 "POST /common/oauth2/v2.0/token HTTP/1.1" 200 4041

[Errno 30] Read-only file system: '/var/user/token.txt'

保存refresh_token到文件错误

Starting new HTTPS connection (1): graph.microsoft.com:443

https://graph.microsoft.com:443 "GET /v1.0/me/drive/root HTTP/1.1" 200 None

me/drive/root调用成功1次

@LittleJake
Copy link
Owner

LittleJake commented Nov 29, 2021

填写Public endpoint的地址噢,类似xxxxx.cloud.redislabs.com这个

@KIclF4
Copy link
Author

KIclF4 commented Nov 29, 2021

您e用哪个创建的数据库,我选Redis Cloud/Fixed Plan/AWS/ap-northeast-1/Standard/30MB 这个日志提示连不上,测试失败

@LittleJake
Copy link
Owner

您e用哪个创建的数据库,我选Redis Cloud/Fixed Plan/AWS/ap-northeast-1/Standard/30MB 这个日志提示连不上,测试失败

检查一下云函数服务器是否为香港区,国内服务器大概率连不上的,香港区访问微软的api也相对稳定一些。

我这边使用的是GCE的northeast服务器,也可以检查一下redis的连接密码

LittleJake added a commit that referenced this issue Nov 29, 2021
1. 更新redislab说明 #1
@KIclF4
Copy link
Author

KIclF4 commented Nov 30, 2021

您e用哪个创建的数据库,我选Redis Cloud/Fixed Plan/AWS/ap-northeast-1/Standard/30MB 这个日志提示连不上,测试失败

检查一下云函数服务器是否为香港区,国内服务器大概率连不上的,香港区访问微软的api也相对稳定一些。

我这边使用的是GCE的northeast服务器,也可以检查一下redis的连接密码

是用的香港区,应该是AWS的问题,换成GCP就正常了

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