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

I got below error messages #2

Open
whotookmyffcc opened this issue Jul 7, 2021 · 0 comments
Open

I got below error messages #2

whotookmyffcc opened this issue Jul 7, 2021 · 0 comments

Comments

@whotookmyffcc
Copy link

OperationalError [UsageError]: Invalid new record.
Details:
  Could not use specified `createdBy`.  Expecting an id representing the associated record, or `null` to indicate there will be no associated record.  But the specified value is not a valid `createdBy`.  Instead of a number (the expected pk type), got: {
  createdAt: 1625624508516,
  updatedAt: 1625624508516,
  id: 53,
  name: 'Peter Quinn',
  email: 'peter.quinn@live.com',
  avatar: 'https://randomuser.me/api/portraits/men/32.jpg',
  location: 'Langley',
  bio: 'Rather not say'
}

    at Object.module.exports.bootstrap (C:\Users\fangc\Dev\chat-app\new-chat-app\config\bootstrap.js:27:36) {
  cause: Error [UsageError]: Invalid new record.
  Details:
    Could not use specified `createdBy`.  Expecting an id representing the associated record, or `null` to indicate there will be no associated record.  But the specified value is not a valid `createdBy`.  Instead of a number (the expected pk type), got: {
    createdAt: 1625624508516,
    updatedAt: 1625624508516,
    id: 53,
    name: 'Peter Quinn',
    email: 'peter.quinn@live.com',
    avatar: 'https://randomuser.me/api/portraits/men/32.jpg',
    location: 'Langley',
    bio: 'Rather not say'
  }

      at Object.module.exports.bootstrap (C:\Users\fangc\Dev\chat-app\new-chat-app\config\bootstrap.js:27:36) {
    code: 'E_INVALID_NEW_RECORD',
    details: 'Could not use specified `createdBy`.  Expecting an id representing the associated record, or `null` to indicate there will be no associated record.  But the specified value is not a valid `createdBy`.  Instead of a number (the expected pk type), got: {\n' +
      '  createdAt: 1625624508516,\n' +
      '  updatedAt: 1625624508516,\n' +
      '  id: 53,\n' +
      "  name: 'Peter Quinn',\n" +
      "  email: 'peter.quinn@live.com',\n" +
      "  avatar: 'https://randomuser.me/api/portraits/men/32.jpg',\n" +
      "  location: 'Langley',\n" +
      "  bio: 'Rather not say'\n" +
      '}'
  },
  isOperational: true,
  code: 'E_INVALID_NEW_RECORD',
  details: 'Could not use specified `createdBy`.  Expecting an id representing the associated record, or `null` to indicate there will be no associated record.  But the specified value is not a valid `createdBy`.  Instead of a number (the expected pk type), got: {\n' +
    '  createdAt: 1625624508516,\n' +
    '  updatedAt: 1625624508516,\n' +
    '  id: 53,\n' +
    "  name: 'Peter Quinn',\n" +
    "  email: 'peter.quinn@live.com',\n" +
    "  avatar: 'https://randomuser.me/api/portraits/men/32.jpg',\n" +
    "  location: 'Langley',\n" +
    "  bio: 'Rather not say'\n" +
    '}'
}

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

1 participant