Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

"TypeError: Cannot read property 'sha' of null" when trying to post #542

Open
rorosaurus opened this issue May 18, 2018 · 2 comments
Open

Comments

@rorosaurus
Copy link

I recently updated my hubpress and tried to get it working with my custom domain and HTTPS, now that GitHub is offering both together.

When I try to edit an existing post and save remotely, I get the following error in console, and the spinner continues on forever:
Uncaught (in promise) TypeError: Cannot read property 'sha' of null

I think I must have messed up some configuration file. I tried reverting it back to the default from hubpress.io repo, and editing only those default settings, but it immediately repopulated with all the old values again as soon as I logged into the admin page.

Example strange CNAME empty commit (also see this for config file as well): rorosaurus/roryhay.es@c0a6176
Example strange config automatically reverted commit:
rorosaurus/roryhay.es@52c4b98

@anthonny
Copy link
Member

anthonny commented May 18, 2018

Hi @rorosaurus

Could you send me the full stacktrace about the error on the property sha please?

You are not te only one with this error:
https://github.com/HubPress/hubpress.io/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+Cannot+read+property+%27sha%27+of+null

But the code had a lot of changes since the 0.8.1 and it will be easier for me to find the problem with a recent stacktrace.

For the CNAME file, did you create the file manually?

@rorosaurus
Copy link
Author

The CNAME file was originally created manually by me. But now it appears that it creates an empty commit with the description "Update CNAME" every time I make any modification. Another example: rorosaurus/roryhay.es@5697272

Here is my log file: roryhay.es-1527042591653.log
Please note, there's a "Maximum call stack size exceeded" which takes up many lines. I'm not sure if that's related, since it seems to happen when I log in to the admin page, not when I save the document.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants