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

无法实现实时刷新 #44

Closed
myl0204 opened this issue May 25, 2017 · 12 comments
Closed

无法实现实时刷新 #44

myl0204 opened this issue May 25, 2017 · 12 comments

Comments

@myl0204
Copy link

myl0204 commented May 25, 2017

本地服务能起来,但是页面无法实时刷新,控制台报错:Failed to load resource: the server responded with a status of 400 (Bad Request)。
socket.io/1/?t=1495724661270显示{"code":0,"message":"Transport unknown"}
系统是Ubuntu16,之前Windows下用一直没问题的。
跪求海波老师解答

@KimThomas
Copy link

可以使用1.1.0的版本安装下,我之前也是遇到同样的问题,等作者再提交代码解决BUG之后再下载最新版本。

@myl0204
Copy link
Author

myl0204 commented Jun 3, 2017

@KimThomas 试了安装1.1.0版本 还是不行 直接在bash中报错了 浏览器都没起来~ 还是等新版本吧

@luyis
Copy link

luyis commented Jun 7, 2017

@myl0204 我在Mac下也遇到一样的问题。你现在解决了吗?

@mejustme
Copy link

mejustme commented Jul 3, 2017

+1

3 similar comments
@cpnewobject
Copy link

+1

@gogogo1024
Copy link

+1

@Yibay
Copy link

Yibay commented Aug 3, 2017

+1

@leeluolee
Copy link
Owner

已经发布 1.1.3版, 更新了chokidar 的版本, 很感谢这个小东西 还有人在使用 会尽快发布2.0版, 目前的next分支

@ufologist
Copy link
Contributor

由于 @leeluolee11cb530 1.1.2 版本后, 将 socket.io 升级到了 "~1.7.4"

- "socket.io": "0.9.16",
+ "socket.io": "~1.7.4",

但是只是升级了 Server 端, 没有升级 Client 端, 即没有更新 reload.js

在里面用的还是 Socket.IO.js build:0.9.10, 版本不兼容, 造成 socket 连接不上, 因此就没有实时刷新了

@leeluolee
Copy link
Owner

@ufologist PR 已经 publish了 1.1.4

@Suzichen
Copy link

Suzichen commented Mar 6, 2018

node v8.9.3
puer v2.0.0
window环境
浏览器无法自动刷新,控制台不报错,求解决方案。重装了之前版本的puer也不行...

----------------更新----------------
终于找到原因了,不是版本和环境的问题,而是项目名称不能带有半角的括号:
新建文件夹(1)✖
新建文件夹(1)✔
解开了之前就有的puer偶尔失效的困惑

@gogogo1024
Copy link

gogogo1024 commented Mar 6, 2018 via email

@myl0204 myl0204 closed this as completed Nov 7, 2023
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

10 participants