Uploaded image for project: 'BookBrainz'
  1. BookBrainz
  2. BB-336

Visiting some editions' page returns 500 error page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Site Backend
    • Labels:
      None

      Description

      Here is the output error when trying to edit https://test.bookbrainz.org/edition/d62469be-9be7-491d-9465-cb34fc95bcf1 . The full error is detailed further below.

      It seems to be linked to missing publisher or publication for an Edition entity.

      Cannot read property 'defaultAlias' of undefined
      at entityToOption (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/lib/server/routes/entity/edition.js:115:24)
      

       

       

      [Wed Mar 20 2019 09:50:17 GMT+0000 (UTC)] ERROR TypeError: Cannot read property 'defaultAlias' of undefined at entityToOption (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/lib/server/routes/entity/edition.js:115:24) at editionToFormState (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/lib/server/routes/entity/edition.js:254:22) at generateEntityProps (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/lib/server/helpers/entityRouteUtils.js:143:17) at router.get (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/lib/server/routes/entity/edition.js:297:112) at Layer.handle [as handle_request] (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/node_modules/express/lib/router/layer.js:95:5) at next (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/node_modules/express/lib/router/route.js:137:13) at Child.model.fetchAll.then.results (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/lib/server/helpers/middleware.js:57:4) at Child.tryCatcher (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/node_modules/bluebird/js/release/promise.js:694:18) at _drainQueueStep (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/node_modules/bluebird/js/release/async.js:138:12) at _drainQueue (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/node_modules/bluebird/js/release/async.js:131:9) at Async._drainQueues (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/node_modules/bluebird/js/release/async.js:147:5) at Immediate.Async.drainQueues (/home/bookbrainz/test.bookbrainz.org/bookbrainz-site/node_modules/bluebird/js/release/async.js:17:14)GET /edition/d62469be-9be7-491d-9465-cb34fc95bcf1/edit 500 775.208 ms - -
      
      

       

        Attachments

          Activity

            People

            • Assignee:
              mastcoder Akhilesh Kumar
              Reporter:
              mr_monkey Monkey
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package