Upload successful! Server responded with: {"success":false,"code":"error","message":"API v1 is deprecated, please refer to https:\/\/doc.sm.ms\/ for v2 API documentation.","RequestId":"2206E813-9FBE-4E78-AF4A-21EEF8CE8E8A"}
2020-04-06T02:12:00.749Z [4567/3430] - error: uncaughtException: Cannot read property 'url' of undefined
TypeError: Cannot read property 'url' of undefined
at Request.optionalCallback [as _callback] (/data/NodeBB/node_modules/nodebb-plugin-smms/index.js:60:19)
at Request.self.callback (/data/NodeBB/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request.<anonymous> (/data/NodeBB/node_modules/request/request.js:1161:10)
at Request.emit (events.js:198:13)
at IncomingMessage.<anonymous> (/data/NodeBB/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:286:20)
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1145:12)
at process._tickCallback (internal/process/next_tick.js:63:19) {"error":{},"stack":"TypeError: Cannot read property 'url' of undefined\n at Request.optionalCallback [as _callback] (/data/NodeBB/node_modules/nodebb-plugin-smms/index.js:60:19)\n at Request.self.callback (/data/NodeBB/node_modules/request/request.js:185:22)\n at Request.emit (events.js:198:13)\n at Request.<anonymous> (/data/NodeBB/node_modules/request/request.js:1161:10)\n at Request.emit (events.js:198:13)\n at IncomingMessage.<anonymous> (/data/NodeBB/node_modules/request/request.js:1083:12)\n at Object.onceWrapper (events.js:286:20)\n at IncomingMessage.emit (events.js:203:15)\n at endReadableNT (_stream_readable.js:1145:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)","exception":true,"date":"Mon Apr 06 2020 10:12:00 GMT+0800 (China Standard Time)","process":{"pid":3430,"uid":1000,"gid":1000,"cwd":"/data/NodeBB","execPath":"/usr/bin/node","version":"v10.19.0","argv":["/usr/bin/node","/data/NodeBB/app.js"],"memoryUsage":{"rss":147079168,"heapTotal":109543424,"heapUsed":95304880,"external":1469546}},"os":{"loadavg":[0.50927734375,0.12451171875,0.0390625],"uptime":22198355},"trace":[{"column":19,"file":"/data/NodeBB/node_modules/nodebb-plugin-smms/index.js","function":"Request.optionalCallback [as _callback]","line":60,"method":"optionalCallback [as _callback]","native":false},{"column":22,"file":"/data/NodeBB/node_modules/request/request.js","function":"Request.self.callback","line":185,"method":"callback","native":false},{"column":13,"file":"events.js","function":"Request.emit","line":198,"method":"emit","native":false},{"column":10,"file":"/data/NodeBB/node_modules/request/request.js","function":null,"line":1161,"method":null,"native":false},{"column":13,"file":"events.js","function":"Request.emit","line":198,"method":"emit","native":false},{"column":12,"file":"/data/NodeBB/node_modules/request/request.js","function":null,"line":1083,"method":null,"native":false},{"column":20,"file":"events.js","function":"Object.onceWrapper","line":286,"method":"onceWrapper","native":false},{"column":15,"file":"events.js","function":"IncomingMessage.emit","line":203,"method":"emit","native":false},{"column":12,"file":"_stream_readable.js","function":"endReadableNT","line":1145,"method":null,"native":false},{"column":19,"file":"internal/process/next_tick.js","function":"process._tickCallback","line":63,"method":"_tickCallback","native":false}]}
2020-04-06T02:12:00.751Z [4567/3430] - error: Cannot read property 'url' of undefined
2020-04-06T02:12:00.756Z [4567/3430] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
2020-04-06T02:12:00.763Z [4567/3430] - info: [app] Web server closed to connections.
2020-04-06T02:12:00.764Z [4567/3430] - info: [app] Live analytics saved.
2020-04-06T02:12:00.768Z [4567/3430] - info: [app] Database connection closed.
2020-04-06T02:12:00.768Z [4567/3430] - info: [app] Shutdown complete.
[cluster] Child Process (3430) has exited (code: 1, signal: null)
看起来是sm.ms 的api v1版本已经弃用了。v2看样子是要注册获取token才行了...