commercetools / commercetools/commercetools-sunrise-data

unhandled exception in orders import

Open
#144 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
43
Forks
73
PR merge metrics
No merged PRs in 30d

Description

Getting this error when importing into a clean empty project using the current master:

(node:83096) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'errors' of undefined
    at _services.client.execute.catch.err (/Users/nkuehn/GitHub/commercetools-sunrise-data/dist/lib/orders.js:93:75)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the orders import in a clean empty project using the current master, then inspect dist/lib/orders.js around line 93 and the surrounding import error path. Done means the reported TypeError is handled during import and the process no longer emits an unhandled promise rejection.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.