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

图片上传不知道哪里有问题 #4

Open
NutWatcher opened this issue Aug 1, 2014 · 4 comments
Open

图片上传不知道哪里有问题 #4

NutWatcher opened this issue Aug 1, 2014 · 4 comments

Comments

@NutWatcher
Copy link

日志里面是 ERROR: undefined
每次重启之后就又可以了。感觉好像是什么连接自动释放了

@wangsai
Copy link

wangsai commented Aug 1, 2014

你上传的文件名带有中文字符吗?

@NutWatcher
Copy link
Author

没有,用的是阿里云的服务。因为同一个文件上传不了,但是重启服务之后就可以了

@wangsai
Copy link

wangsai commented Aug 1, 2014

上传到云的问题一直存在,问题重现、追踪比较难,系统本身也有一些bug影响到上传功能。0.5 版本最近将发布正式版,我们把精力放在新版本上了,到时候升级到新版本吧,0.4.2 的问题先搁置吧

@go3k
Copy link

go3k commented Aug 5, 2014

Hi, @wangsai 我发现了类似的问题,我的情况是这样:
按照README,把qiniu相关的配置修改好,启动ghost。这时候进行图片上传是正常的,可以上传到七牛云,得到正确的七牛链接。但是大概过几个小时再上传图片就会报错了。

我在BAE和本机都搭了qiniu-ghost环境,都有这个情况。

下面是我本地环境的完整报错stack

   [promises] Unhandled rejections: 1
   [ { reason: { code: -1, error: [Object] },
       message: '[object Object]',
       stack: 
        [ '=== Unhandled rejection escaped at ===',
          '    at Object._.extend.save (/Users/Vincent/Workspace/ghost-0.4.2/core/server/storage/qiniu.js:58:12)',
          '    at adminControllers.upload (/Users/Vincent/Workspace/ghost-0.4.2/core/server/controllers/admin.js:152:14)',
          '  ...[filtered frames]...',
          '    at callbacks (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/express/lib/router/index.js:164:37)',
          '    at Busboy.<anonymous> (/Users/Vincent/Workspace/ghost-0.4.2/core/server/middleware/ghost-busboy.js:80:9)',
          '    at Busboy.emit (events.js:92:17)',
          '    at /Users/Vincent/Workspace/ghost-0.4.2/node_modules/busboy/lib/types/multipart.js:42:41',
          '  --- new call stack ---',
          '    at Object._.extend.save (/Users/Vincent/Workspace/ghost-0.4.2/core/server/storage/qiniu.js:54:12)',
          '    at adminControllers.upload (/Users/Vincent/Workspace/ghost-0.4.2/core/server/controllers/admin.js:152:14)',
          '  ...[filtered frames]...',
          '    at callbacks (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/express/lib/router/index.js:164:37)',
          '    at Busboy.<anonymous> (/Users/Vincent/Workspace/ghost-0.4.2/core/server/middleware/ghost-busboy.js:80:9)',
          '    at Busboy.emit (events.js:92:17)',
          '    at /Users/Vincent/Workspace/ghost-0.4.2/node_modules/busboy/lib/types/multipart.js:42:41',
          '  --- new call stack ---',
          '    at Object._.extend.save (/Users/Vincent/Workspace/ghost-0.4.2/core/server/storage/qiniu.js:46:12)',
          '    at adminControllers.upload (/Users/Vincent/Workspace/ghost-0.4.2/core/server/controllers/admin.js:152:14)',
          '  ...[filtered frames]...',
          '    at callbacks (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/express/lib/router/index.js:164:37)',
          '    at Busboy.<anonymous> (/Users/Vincent/Workspace/ghost-0.4.2/core/server/middleware/ghost-busboy.js:80:9)',
          '    at Busboy.emit (events.js:92:17)',
          '    at /Users/Vincent/Workspace/ghost-0.4.2/node_modules/busboy/lib/types/multipart.js:42:41',
          '  --- new call stack ---',
          '    at Object._.extend.save (/Users/Vincent/Workspace/ghost-0.4.2/core/server/storage/qiniu.js:44:53)',
          '    at adminControllers.upload (/Users/Vincent/Workspace/ghost-0.4.2/core/server/controllers/admin.js:152:14)',
          '  ...[filtered frames]...',
          '    at callbacks (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/express/lib/router/index.js:164:37)',
          '    at Busboy.<anonymous> (/Users/Vincent/Workspace/ghost-0.4.2/core/server/middleware/ghost-busboy.js:80:9)',
          '    at Busboy.emit (events.js:92:17)',
          '    at /Users/Vincent/Workspace/ghost-0.4.2/node_modules/busboy/lib/types/multipart.js:42:41',
          '  --- new call stack ---',
          '    at _apply (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/when/node/function.js:78:31)',
          '    at Object.call (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/when/node/function.js:114:10)',
          '  ...[filtered frames]...',
          '    at Object._.extend.save (/Users/Vincent/Workspace/ghost-0.4.2/core/server/storage/qiniu.js:44:16)',
          '    at adminControllers.upload (/Users/Vincent/Workspace/ghost-0.4.2/core/server/controllers/admin.js:152:14)',
          '    at callbacks (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/express/lib/router/index.js:164:37)',
          '    at Busboy.<anonymous> (/Users/Vincent/Workspace/ghost-0.4.2/core/server/middleware/ghost-busboy.js:80:9)',
          '    at Busboy.emit (events.js:92:17)',
          '  --- new call stack ---',
          '    at _apply (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/when/node/function.js:78:15)',
          '    at Object.call (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/when/node/function.js:114:10)',
          '  ...[filtered frames]...',
          '    at Object._.extend.save (/Users/Vincent/Workspace/ghost-0.4.2/core/server/storage/qiniu.js:44:16)',
          '    at adminControllers.upload (/Users/Vincent/Workspace/ghost-0.4.2/core/server/controllers/admin.js:152:14)',
          '    at callbacks (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/express/lib/router/index.js:164:37)',
          '    at Busboy.<anonymous> (/Users/Vincent/Workspace/ghost-0.4.2/core/server/middleware/ghost-busboy.js:80:9)',
          '  --- new call stack ---',
          '    at _apply (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/when/node/function.js:78:15)',
          '    at Object.call (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/when/node/function.js:114:10)',
          '  ...[filtered frames]...',
          '    at Object._.extend.save (/Users/Vincent/Workspace/ghost-0.4.2/core/server/storage/qiniu.js:44:16)',
          '    at adminControllers.upload (/Users/Vincent/Workspace/ghost-0.4.2/core/server/controllers/admin.js:152:14)',
          '  --- new call stack ---',
          '    at _apply (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/when/node/function.js:78:15)',
          '    at Object.call (/Users/Vincent/Workspace/ghost-0.4.2/node_modules/when/node/function.js:114:10)',
          '  ...[filtered frames]...',
          '    at Object._.extend.save (/Users/Vincent/Workspace/ghost-0.4.2/core/server/storage/qiniu.js:44:16)',
          '=== Caused by reason ===',
          'Error: [object Object]' ] } ]

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

3 participants