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

Should handle the case when CreateArticle request fails #139

Open
MrOrz opened this issue Aug 1, 2019 · 0 comments
Open

Should handle the case when CreateArticle request fails #139

MrOrz opened this issue Aug 1, 2019 · 0 comments

Comments

@MrOrz
Copy link
Member

MrOrz commented Aug 1, 2019

View details in Rollbar: https://rollbar.com/mrorz/rumors-line-bot/items/153/


TypeError: Cannot read property 'id' of null
  File "/app/build/handlers/askingArticleSubmissionReason.js", line 46, in <unknown>
          const articleUrl = (0, _utils.getArticleURL)(CreateArticle.id);
  File "<anonymous>", line unknown, in Generator.next
  File "/app/build/handlers/askingArticleSubmissionReason.js", line 19, in step
    function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  File "/app/build/handlers/askingArticleSubmissionReason.js", line 19, in <unknown>
    function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  File "internal/process/next_tick.js", line 68, in process._tickCallback
@MrOrz MrOrz changed the title TypeError: Cannot read property 'id' of null Should handle the case when CreateArticle request fails Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant