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

React error in console when trying to submit/open article #723

Closed
sf-jd opened this Issue Jul 23, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@sf-jd

sf-jd commented Jul 23, 2018

1- Logged in as a freshly created account through slack auth
2- Created a new section for our QA team
3- Created the first article where tried a few of the editor features (bold, headings, quotes, lists)
4- Upon saving I was redirected to an empty page with title "Something went wrong"

The article title is showing up as expected, but when i click on it, i get the same empty page with the same title (on the tab, actual html title not within the page)

When i inspected the console, found the following:

bugsnag-3.min.js:1 Error: `Node.create` requires a `object` string.
    at value (slate.js:6543)
    at Array.map (<anonymous>)
    at Function.value [as createChildren] (slate.js:6564)
    at Function.value [as fromJS] (slate.js:1825)
    at Function.value [as fromJS] (slate.js:11507)
    at e.value (renderer.js:377)
    at new t (index.js:116)
    at constructClassInstance (react-dom.production.min.js:108)
    at beginWork (react-dom.production.min.js:133)
    at r (react-dom.production.min.js:160)
a.(anonymous function) @ bugsnag-3.min.js:1
u @ react-dom.production.min.js:163
a @ react-dom.production.min.js:161
_ @ react-dom.production.min.js:167
w @ react-dom.production.min.js:167
batchedUpdates @ react-dom.production.min.js:170
lt @ react-dom.production.min.js:53
Xt @ mobx.js:3093
Jt @ mobx.js:3069
It @ mobx.js:2625
e.reportChanged @ mobx.js:68
t.setNewValue @ mobx.js:770
ge @ mobx.js:1622
set @ mobx.js:1579
(anonymous) @ Document.js:146
_ @ runtime.js:65
(anonymous) @ runtime.js:303
e.(anonymous function) @ runtime.js:117
r @ Document.js:36
(anonymous) @ Document.js:36
Promise.then (async)
r @ Document.js:36
(anonymous) @ Document.js:36
(anonymous) @ Document.js:36
value @ Document.js:76
t.componentDidMount @ method_decorator.js:60
B.i @ index.js:526
commitLifeCycles @ react-dom.production.min.js:148
t @ react-dom.production.min.js:157
_ @ react-dom.production.min.js:168
w @ react-dom.production.min.js:167
batchedUpdates @ react-dom.production.min.js:170
lt @ react-dom.production.min.js:53
Jt @ react-dom.production.min.js:70
a.bugsnag @ bugsnag-3.min.js:1
bugsnag-3.min.js:1 Error: Minified React error #31; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7BbreadcrumbLimit%2C%20noConflict%2C%20refresh%2C%20notifyException%2C%20notify%2C%20leaveBreadcrumb%2C%20enableAutoBreadcrumbsConsole%2C%20disableAutoBreadcrumbsConsole%2C%20enableAutoBreadcrumbsNavigation%2C%20disableAutoBreadcrumbsNavigation%2C%20enableAutoBreadcrumbsErrors%2C%20disableAutoBreadcrumbsErrors%2C%20enableAutoBreadcrumbsClicks%2C%20disableAutoBreadcrumbsClicks%2C%20enableAutoBreadcrumbs%2C%20disableAutoBreadcrumbs%2C%20enableNotifyUnhandledRejections%2C%20disableNotifyUnhandledRejections%2C%20_serialize%2C%20autoBreadcrumbsConsole%2C%20user%7D&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at d (react-dom.production.min.js:13)
    at Cr (react-dom.production.min.js:115)
    at v (react-dom.production.min.js:120)
    at b (react-dom.production.min.js:123)
    at react-dom.production.min.js:127
    at a (react-dom.production.min.js:129)
    at i (react-dom.production.min.js:129)
    at beginWork (react-dom.production.min.js:134)
    at r (react-dom.production.min.js:160)
    at i (react-dom.production.min.js:160)
a.(anonymous function) @ bugsnag-3.min.js:1
u @ react-dom.production.min.js:163
a @ react-dom.production.min.js:161
_ @ react-dom.production.min.js:167
w @ react-dom.production.min.js:167
batchedUpdates @ react-dom.production.min.js:170
lt @ react-dom.production.min.js:53
Xt @ mobx.js:3093
Jt @ mobx.js:3069
It @ mobx.js:2625
e.reportChanged @ mobx.js:68
t.setNewValue @ mobx.js:770
ge @ mobx.js:1622
set @ mobx.js:1579
(anonymous) @ Document.js:146
_ @ runtime.js:65
(anonymous) @ runtime.js:303
e.(anonymous function) @ runtime.js:117
r @ Document.js:36
(anonymous) @ Document.js:36
Promise.then (async)
r @ Document.js:36
(anonymous) @ Document.js:36
(anonymous) @ Document.js:36
value @ Document.js:76
t.componentDidMount @ method_decorator.js:60
B.i @ index.js:526
commitLifeCycles @ react-dom.production.min.js:148
t @ react-dom.production.min.js:157
_ @ react-dom.production.min.js:168
w @ react-dom.production.min.js:167
batchedUpdates @ react-dom.production.min.js:170
lt @ react-dom.production.min.js:53
Jt @ react-dom.production.min.js:70
a.bugsnag @ bugsnag-3.min.js:1
react-dom.production.min.js:13 Uncaught (in promise) Error: Minified React error #31; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7BbreadcrumbLimit%2C%20noConflict%2C%20refresh%2C%20notifyException%2C%20notify%2C%20leaveBreadcrumb%2C%20enableAutoBreadcrumbsConsole%2C%20disableAutoBreadcrumbsConsole%2C%20enableAutoBreadcrumbsNavigation%2C%20disableAutoBreadcrumbsNavigation%2C%20enableAutoBreadcrumbsErrors%2C%20disableAutoBreadcrumbsErrors%2C%20enableAutoBreadcrumbsClicks%2C%20disableAutoBreadcrumbsClicks%2C%20enableAutoBreadcrumbs%2C%20disableAutoBreadcrumbs%2C%20enableNotifyUnhandledRejections%2C%20disableNotifyUnhandledRejections%2C%20_serialize%2C%20autoBreadcrumbsConsole%2C%20user%7D&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at d (react-dom.production.min.js:13)
    at Cr (react-dom.production.min.js:115)
    at v (react-dom.production.min.js:120)
    at b (react-dom.production.min.js:123)
    at react-dom.production.min.js:127
    at a (react-dom.production.min.js:129)
    at i (react-dom.production.min.js:129)
    at beginWork (react-dom.production.min.js:134)
    at r (react-dom.production.min.js:160)
    at i (react-dom.production.min.js:160)

Let me know if you need more info!

@tommoor

This comment has been minimized.

Member

tommoor commented Jul 23, 2018

Thanks for filing - it's tricky to resolve without the content - does it work on refresh? If not would you be able to create a share link to the document and add that to the issue or email to… hello@getoutline.com

To create a share link on the dashboard, hover document and select "..." item, share is in the menu)

@sf-jd

This comment has been minimized.

sf-jd commented Jul 23, 2018

It did not work on refresh. I am emailing you the share link :)

@tommoor

This comment has been minimized.

Member

tommoor commented Jul 23, 2018

Much appreciated! Hopefully your other test documents fair better - there are many thousands of documents in Outline without any issues like this one 😢

Will update here as a fix gets built out.

@sf-jd

This comment has been minimized.

sf-jd commented Jul 23, 2018

Thank you for the quick response! Hopefully the article can be recovered, i did not think about writing it somewhere else and it got a bit longer than i'd like to rewrite ⚱️

tommoor added a commit to tommoor/slate-md-serializer that referenced this issue Jul 24, 2018

tommoor added a commit that referenced this issue Jul 24, 2018

@tommoor

This comment has been minimized.

Member

tommoor commented Jul 24, 2018

The document isn't rendering perfectly because of #726 and #701 – but it does load now and this specific issues is fixed

@tommoor tommoor closed this Jul 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment