Reaction: [release-1.14.0] Error when starting Release 14

Created on 16 Jul 2018  路  7Comments  路  Source: reactioncommerce/reaction

Issue Description

Receiving the following error in the server console when starting release 14

06:27:53.974Z ERROR Reaction: [product._id is not allowed by the schema]
  Error: [product._id is not allowed by the schema]
      at Function.SimpleSchema.defineValidationErrorTransform.error [as validationErrorTransform] (imports/plugins/core/core/server/startup/index.js:20:20)
      at /Users/brenthoover/Projects/js/reaction/node_modules/simpl-schema/dist/SimpleSchema.js:757:30
      at Array.forEach (<anonymous>)
      at SimpleSchema.validate (/Users/brenthoover/Projects/js/reaction/node_modules/simpl-schema/dist/SimpleSchema.js:730:15)
      at Promise.asyncApply (imports/plugins/core/catalog/server/no-meteor/utils/publishProductToCatalog.js:36:21)
      at /Users/brenthoover/.meteor/packages/promise/.0.11.1.tdo4r7.5gbr++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40

Steps to Reproduce

  1. Reset data
  2. Start the app on release 14

Versions

In case it's not clear: Release 14

bug

All 7 comments

I just left a new issue, when I run locally without docker, using the reaction command line, this error shows up when I click publish for changes, but the app still runs, ????

@zenweasel I'm unable to reproduce this using release-1.14.0 starting using our docker-compose file.

Where are you seeing this error? Client? Server?
Are you able to reproduce this in a containerized environment or just using reaction run?
Based on what you're reporting, it seems that maybe this is coming from a migration?

client in the console. I am doing a clean install

@spencern Updated the description to be more clear. Running it locally (not in a container) from a fresh db. It does _seem_ to be from a migration but I didn't want to make that assumption because the traceback seems to be pointing to something in the fixture import

To be clear, you're talking about release-1.14.0?

I was just able to reproduce within a container and it appears to be coming from https://github.com/reactioncommerce/reaction/pull/4421/files#diff-26cb9114bdc2db419e69afe92a2dad35R31

Edit: I think it's actually probably just the new validation happening against the publishProductToCatalog method

Seems to be this line in Migration 24 causing the issue: https://github.com/reactioncommerce/reaction/blob/release-1.14.0/imports/plugins/core/versions/server/migrations/24_publish_all_existing_visible_products.js#L16

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zikeji picture zikeji  路  4Comments

focusaurus picture focusaurus  路  4Comments

aaronjudd picture aaronjudd  路  3Comments

rlamostre0 picture rlamostre0  路  4Comments

spencern picture spencern  路  3Comments