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

leancloud无法解析导致Valine无法正常使用 #188

Closed
myloft opened this issue Jun 20, 2019 · 46 comments

Comments

@myloft
Copy link

@myloft myloft commented Jun 20, 2019

域名无法访问的临时解决方案
cdn1.lncld.net替换为avoscloud.com

@xCss xCss pinned this issue Jun 20, 2019
@Mabbs

This comment has been minimized.

Copy link

@Mabbs Mabbs commented Jun 20, 2019

似乎不行,404了

@xCss

This comment has been minimized.

Copy link
Owner

@xCss xCss commented Jun 20, 2019

我看了下,需要Valine在初始化AV对象的时候设置serverUrl,最迟明天更新。

@HpBoss

This comment has been minimized.

Copy link

@HpBoss HpBoss commented Jun 21, 2019

我看了下,需要缬氨酸在初始化AV对象的时候设置serverUrl,最迟明天更新。

更新好了,可以通知一下嘛

@jiyiren

This comment has been minimized.

Copy link

@jiyiren jiyiren commented Jun 21, 2019

有更新好吗?

@jiyiren

This comment has been minimized.

Copy link

@jiyiren jiyiren commented Jun 21, 2019

leancloud 也太惨了,竟然要被墙

@xCss

This comment has been minimized.

Copy link
Owner

@xCss xCss commented Jun 21, 2019

@jiyiren @HpBoss 还没,现在遇到的问题是我本地测试出现cdn1.lncld.net替换为avoscloud.com替换后无法访问sdk文件

@lxqxsyu

This comment has been minimized.

Copy link

@lxqxsyu lxqxsyu commented Jun 21, 2019

好惨,有修改了临时服务器地址的js文件吗

@HpBoss

This comment has been minimized.

Copy link

@HpBoss HpBoss commented Jun 21, 2019

@jiyiren

This comment has been minimized.

Copy link

@jiyiren jiyiren commented Jun 21, 2019

leancloud sdk 有没有更新的

@jiyiren

This comment has been minimized.

Copy link

@jiyiren jiyiren commented Jun 21, 2019

image

@lxqxsyu

This comment has been minimized.

Copy link

@lxqxsyu lxqxsyu commented Jun 21, 2019

需要修改一下Valine.mie.js的下方代码:

        AV.init({
            serverURLs: 'https://avoscloud.com',
            appId: id,
            appKey: key
        });

并更改av.mie.js为:

<script src="//cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js"></script>
@lxqxsyu

This comment has been minimized.

Copy link

@lxqxsyu lxqxsyu commented Jun 21, 2019

@jiyiren @HpBoss 还没,现在遇到的问题是我本地测试出现cdn1.lncld.net替换为avoscloud.com替换后无法访问sdk文件

我刚试了一下好像也不行,着急!

@p1r06u3

This comment has been minimized.

Copy link

@p1r06u3 p1r06u3 commented Jun 21, 2019

image
cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js 这个js里的地址还是app-router.leancloud.cn后端服务,需要leancloud去替换。谁能联系上,让他们给我们一个地址。
还有这个lxlh8tot.api.lncld.net。
image

@mstao

This comment has been minimized.

Copy link

@mstao mstao commented Jun 21, 2019

TIM图片20190621140809

今天收到短信了,被墙了吗,还是怎么回事

@lxqxsyu

This comment has been minimized.

Copy link

@lxqxsyu lxqxsyu commented Jun 21, 2019

image
cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js 这个js里的地址还是app-router.leancloud.cn后端服务,需要leancloud去替换。谁能联系上,让他们给我们一个地址。
还有这个lxlh8tot.api.lncld.net。
image

https://avoscloud.com/ 这个官网地址的右下角可以联系上

@lxqxsyu

This comment has been minimized.

Copy link

@lxqxsyu lxqxsyu commented Jun 21, 2019

image
cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js 这个js里的地址还是app-router.leancloud.cn后端服务,需要leancloud去替换。谁能联系上,让他们给我们一个地址。
还有这个lxlh8tot.api.lncld.net。
image

image

@p1r06u3

This comment has been minimized.

Copy link

@p1r06u3 p1r06u3 commented Jun 21, 2019

临时方案可以用我博客里面的地址:
http://pirogue.org/js/av-min.js

image

@lxqxsyu

This comment has been minimized.

Copy link

@lxqxsyu lxqxsyu commented Jun 21, 2019

临时方案可以用我博客里面的地址:
http://pirogue.org/js/av-min.js

image

果然好了,感谢,我贡献一个临时的https的地址: https://dp2px.com/demo/av-min.js

@invkrh

This comment has been minimized.

Copy link

@invkrh invkrh commented Jun 21, 2019

还是不行,leancloud返回410

Request URL: https://avoscloud.com/1.1/classes/Comment?where=.....&order=-createdAt%2C-insertedAt&limit=0&count=1
Request Method: GET
Status Code: 410 

请问有没有办法解决?
谢谢

@HpBoss

This comment has been minimized.

Copy link

@HpBoss HpBoss commented Jun 21, 2019

兄弟们我们本地没问题了,但是我放在服务器上还是有这个问题,评论区加载不出来

@HigHwindEx

This comment has been minimized.

Copy link

@HigHwindEx HigHwindEx commented Jun 21, 2019

@HpBoss 缓存没刷新吧……你倒是看看控制台是什么错误啊

@weakish

This comment has been minimized.

Copy link

@weakish weakish commented Jun 21, 2019

@lxqxsyu 换 jsdelivr CDN,同时初始化语句中设置 serverURLs 后还是不行吗?

@HpBoss

This comment has been minimized.

Copy link

@HpBoss HpBoss commented Jun 21, 2019

@HpBoss

This comment has been minimized.

Copy link

@HpBoss HpBoss commented Jun 21, 2019

@HpBoss

This comment has been minimized.

Copy link

@HpBoss HpBoss commented Jun 21, 2019

@weakish

This comment has been minimized.

Copy link

@weakish weakish commented Jun 21, 2019

看起来 v1.3.7 已经修复了这个问题。

@lxqxsyu

This comment has been minimized.

Copy link

@lxqxsyu lxqxsyu commented Jun 21, 2019

兄弟们我们本地没问题了,但是我放在服务器上还是有这个问题,评论区加载不出来

可能是你的站强制https,你需要添加https的库 : https://dp2px.com/demo/av-min.js

@missdeer

This comment has been minimized.

Copy link

@missdeer missdeer commented Jun 23, 2019

临时方案可以用我博客里面的地址:
http://pirogue.org/js/av-min.js
image

果然好了,感谢,我贡献一个临时的https的地址: https://dp2px.com/demo/av-min.js

感谢,已用上

@AomanHao

This comment has been minimized.

Copy link

@AomanHao AomanHao commented Jun 23, 2019

临时方案可以用我博客里面的地址:
http://pirogue.org/js/av-min.js
image

果然好了,感谢,我贡献一个临时的https的地址: https://dp2px.com/demo/av-min.js

这是修改的主题中哪一个文件

@msdx

This comment has been minimized.

Copy link

@msdx msdx commented Jun 23, 2019

临时方案可以用我博客里面的地址:
http://pirogue.org/js/av-min.js
image

果然好了,感谢,我贡献一个临时的https的地址: https://dp2px.com/demo/av-min.js

@lxqxsyu 小强?用下你的地址,谢了。

@myloft

This comment has been minimized.

Copy link
Author

@myloft myloft commented Jun 23, 2019

临时方案可以用我博客里面的地址:
http://pirogue.org/js/av-min.js
image

果然好了,感谢,我贡献一个临时的https的地址: https://dp2px.com/demo/av-min.js

@lxqxsyu 小强?用下你的地址,谢了。

现在可以直接把av-min.js的引用删除了。valine.js会自动调用了。

@AomanHao

This comment has been minimized.

Copy link

@AomanHao AomanHao commented Jun 23, 2019

临时方案可以用我博客里面的地址:
http://pirogue.org/js/av-min.js
image

果然好了,感谢,我贡献一个临时的https的地址: https://dp2px.com/demo/av-min.js

这是修改的主题中哪一个文件

我是next6+版本,直接修改_config.yml

@BillYang2016

This comment has been minimized.

Copy link

@BillYang2016 BillYang2016 commented Jun 23, 2019

奇怪的是,我用的next7,没有修改任何valine相关文件,评论系统可以正常使用。

@msdx

This comment has been minimized.

Copy link

@msdx msdx commented Jun 23, 2019

奇怪的是,我用的next7,没有修改任何valine相关文件,评论系统可以正常使用。

有些地区可以,有些地区不可以。我用它加入了一个自定义的阅读统计,这几天api请求数锐减为不到之前的十分之一

@lxqxsyu

This comment has been minimized.

Copy link

@lxqxsyu lxqxsyu commented Jun 23, 2019

临时方案可以用我博客里面的地址:
http://pirogue.org/js/av-min.js
image

果然好了,感谢,我贡献一个临时的https的地址: https://dp2px.com/demo/av-min.js

@lxqxsyu 小强?用下你的地址,谢了。

你的valine评论有问题,看图
valine评论错误

@msdx

This comment has been minimized.

Copy link

@msdx msdx commented Jun 23, 2019

临时方案可以用我博客里面的地址:
http://pirogue.org/js/av-min.js
image

果然好了,感谢,我贡献一个临时的https的地址: https://dp2px.com/demo/av-min.js

@lxqxsyu 小强?用下你的地址,谢了。

你的valine评论有问题,看图
valine评论错误

刚更新的。确实有问题。有个地方写错了。

@RikkaBlue

This comment has been minimized.

Copy link

@RikkaBlue RikkaBlue commented Jun 23, 2019

@invkrh 我也是返回410 Code : undefined [410 GET https://avoscloud.com/1.1/classes/Comment]

如果进入这个网页,就是如下提示:
{"code":401,"error":"Unauthorized."}

@BillYang2016

This comment has been minimized.

Copy link

@BillYang2016 BillYang2016 commented Jun 24, 2019

临时方案可以用我博客里面的地址:
http://pirogue.org/js/av-min.js
image

果然好了,感谢,我贡献一个临时的https的地址: https://dp2px.com/demo/av-min.js

这是修改的主题中哪一个文件

我是next6+版本,直接修改_config.yml

NexT 7+版本会自动更新Valine版本,因此不需任何修改。

@sli1989

This comment has been minimized.

Copy link

@sli1989 sli1989 commented Jun 24, 2019

@p1r06u3 @lxqxsyu 请问数据库的访问问题解决了么。阅读榜无法生成。

<script src="//cdn.jsdelivr.net/npm/leancloud-storage/dist/av-min.js"></script>

<script>AV.initialize("**", "**");</script>
@xCss

This comment has been minimized.

Copy link
Owner

@xCss xCss commented Jun 24, 2019

@sli1989 阅读量统计在v1.3.7失效是个已知bug,将会尽快修复

@sli1989

This comment has been minimized.

Copy link

@sli1989 sli1989 commented Jun 24, 2019

@xCss 谢谢,我更新后,阅读量统计是好的诶?
我指的这个意思:自定义的阅读榜单和点击数,无法从数据库访问获取列表。楼上提到cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js 这个js里的地址还是app-router.leancloud.cn后端服务,所以不知道是不是av-min.js的问题。

@xCss

This comment has been minimized.

Copy link
Owner

@xCss xCss commented Jun 24, 2019

@sli1989 如果调用是Valine之外的AV.init方法,需要手动设置serverURLs:

   AV.init({
            serverURLs: 'https://avoscloud.com',
            appId: id,
            appKey: key
        });
@msdx

This comment has been minimized.

Copy link

@msdx msdx commented Jun 24, 2019

@xCss 谢谢,我更新后,阅读量统计是好的诶?
我指的这个意思:自定义的阅读榜单和点击数,无法从数据库访问获取列表。楼上提到cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js 这个js里的地址还是app-router.leancloud.cn后端服务,所以不知道是不是av-min.js的问题。

我也自己实现了阅读统计,改完目前看来似乎没问题。

@WhiteSnowPinkPinkWhatItLike

This comment has been minimized.

Copy link

@WhiteSnowPinkPinkWhatItLike WhiteSnowPinkPinkWhatItLike commented Jun 24, 2019

临时方案可以用我博客里面的地址:
http://pirogue.org/js/av-min.js
image

果然好了,感谢,我贡献一个临时的https的地址: https://dp2px.com/demo/av-min.js

感谢!我贡献一个自己的全球 cdn 加速地址吧:https://cdn.17shou.vip/www-17shou-vip/valine/av-min.js
qwq

weakish added a commit to weakish/Valine that referenced this issue Jun 24, 2019
@HpBoss

This comment has been minimized.

Copy link

@HpBoss HpBoss commented Jun 24, 2019

@sli1989

This comment has been minimized.

Copy link

@sli1989 sli1989 commented Jun 25, 2019

@xCss 谢谢,我更新后,阅读量统计是好的诶?
我指的这个意思:自定义的阅读榜单和点击数,无法从数据库访问获取列表。楼上提到cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js 这个js里的地址还是app-router.leancloud.cn后端服务,所以不知道是不是av-min.js的问题。

我也自己实现了阅读统计,改完目前看来似乎没问题。

使用 cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js 无法读取,暂时使用楼上给出的av-min.js可以使用。

@xCss xCss closed this in 511dd84 Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.