-
Notifications
You must be signed in to change notification settings - Fork 63
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
Upgrade FlashStore to v0.16 (Beta) #191
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
windmemory
approved these changes
Aug 22, 2019
Thanks for the PR, LGTM! |
Seems like there are something wrong with the new version, when I started the bot, it has thus error: 17:56:48 INFO Wechaty <Puppet#0<PuppetPadpro>()/PuppetPadpro#0>(test) start() v0.0.0 is starting...
17:56:48 INFO WechatGateway init(padpro_token, padpro.botorange.com:6666, undefined)
(node:43398) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
17:56:49 INFO CacheManager init()
(node:43398) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at FlashStore.<anonymous> (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:159:1)
at this (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:1:18)
at Object.next (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/bundles/flash-store.umd.js:4:53)
at fulfilled (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:43:1)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:43398) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:43398) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:43398) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token , in JSON at position 2
at JSON.parse (<anonymous>)
at FlashStore.<anonymous> (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:159:1)
at this (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:1:18)
at Object.next (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/bundles/flash-store.umd.js:4:53)
at fulfilled (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:43:1)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:43398) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
17:56:53 INFO PadproManager initData() finished with contacts: 26, rooms: 4
(node:43398) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at FlashStore.<anonymous> (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:159:1)
at this (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:1:18)
at Object.next (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/bundles/flash-store.umd.js:4:53)
at fulfilled (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:43:1)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:43398) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:43398) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at FlashStore.<anonymous> (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:159:1)
at this (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:1:18)
at Object.next (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/bundles/flash-store.umd.js:4:53)
at fulfilled (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:43:1)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:43398) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
(node:43398) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at FlashStore.<anonymous> (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:159:1)
at this (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:1:18)
at Object.next (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/bundles/flash-store.umd.js:4:53)
at fulfilled (/Users/yuangao/git/wechaty/wechaty-puppet-padpro/node_modules/flash-store/dist/src/flash-store.js:43:1)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:43398) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)
^C I tried to find the root cause for this, but have no clue yet. My insights for the issue is that, when the bot logged in, it will get the |
This was referenced Oct 12, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The latest version of flash-store used snap-db, which is a pure javascript db, does not require any dependencies.
It will solve two problems:
See: