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

error parsing resub event #4310

Closed
sogehige opened this issue Nov 12, 2020 · 0 comments · Fixed by #4314
Closed

error parsing resub event #4310

sogehige opened this issue Nov 12, 2020 · 0 comments · Fixed by #4314

Comments

@sogehige
Copy link
Collaborator

2020-11-12T16:55:42.767 !!! ERROR !!! {
  _raw: "@badge-info=;badges=premium/1;color=;display-name=testuser;emotes=;flags=;id=48a39073-9281-46ad-b139-257f5d6669d3;login=testuser;mod=0;msg-id=resub;msg-param-cumulative-months=8;msg-param-months=0;msg-param-multimonth-duration=0;msg-param-multimonth-tenure=0;msg-param-should-share-streak=0;msg-param-sub-plan-name=Mamadísimo\\s(Tier\\s1);msg-param-sub-plan=Prime;msg-param-was-gifted=false;room-id=459331509;subscriber=1;system-msg=testuser\\ssubscribed\\swith\\sPrime.\\sThey've\\ssubscribed\\sfor\\s8\\smonths!;tmi-sent-ts=1605196542491;user-id=123456789;user-type= :tmi.twitch.tv USERNOTICE #testchannel :Felicidades atrasadas bb. Tqm",
  timestamp: 2020-11-12T15:55:42.491Z,
  command: 'USERNOTICE',
  event: 'RESUBSCRIPTION',
  channel: '#testchannel',
  username: 'testuser',
  isSelf: false,
  tags: {
    badgeInfo: '',
    badges: { premium: '1' },
    color: '',
    displayName: 'testuser',
    emotes: [],
    flags: '',
    id: '48a39073-9281-46ad-b139-257f5d6669d3',
    login: 'testuser',
    mod: '0',
    msgId: 'resub',
    msgParamCumulativeMonths: '8',
    msgParamMonths: '0',
    msgParamMultimonthDuration: '0',
    msgParamMultimonthTenure: '0',
    msgParamShouldShareStreak: '0',
    msgParamSubPlanName: 'Mamadísimo (Tier 1)',
    msgParamSubPlan: 'Prime',
    msgParamWasGifted: 'false',
    roomId: '459331509',
    subscriber: '1',
    systemMsg: "testuser subscribed with Prime. They've subscribed for 8 months!",
    tmiSentTs: '1605196542491',
    userId: '123456789',
    userType: '',
    bits: undefined,
    emoteSets: [],
    username: 'testuser'
  },
  message: 'Felicidades atrasadas bb. Tqm',
  parameters: {
    cumulativeMonths: '8',
    months: 0,
    multimonthDuration: '0',
    multimonthTenure: '0',
    shouldShareStreak: '0',
    subPlanName: 'Mamadísimo (Tier 1)',
    subPlan: 'Prime',
    wasGifted: 'false'
  },
  systemMessage: "testuser subscribed with Prime. They've subscribed for 8 months!"
}
2020-11-12T16:55:42.769 !!! ERROR !!! QueryFailedError: SqliteError: NOT NULL constraint failed: user.subscribedAt
    at new QueryFailedError (/home/soge/_WORK/sogeBot/src/error/QueryFailedError.ts:9:9)
    at BetterSqlite3QueryRunner.<anonymous> (/home/soge/_WORK/sogeBot/src/driver/better-sqlite3/BetterSqlite3QueryRunner.ts:103:19)
    at step (/home/soge/_WORK/sogeBot/node_modules/tslib/tslib.js:141:27)
    at Object.next (/home/soge/_WORK/sogeBot/node_modules/tslib/tslib.js:122:57)
    at fulfilled (/home/soge/_WORK/sogeBot/node_modules/tslib/tslib.js:112:62)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)```
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

Successfully merging a pull request may close this issue.

1 participant