ifvictr / ghost-storage-github

:octocat: GitHub storage adapter for Ghost
https://npm.im/ghost-storage-github
MIT License
65 stars 12 forks source link

"InternalServerError: is at commit <N> but expected commit <N - 1>" on image upload #21

Closed ifvictr closed 4 years ago

ifvictr commented 5 years ago

Getting this error when trying to upload a cover image to a post.

InternalServerError: is at 9222de0514c40164f1fc209ba563eb326b1c6826 but expected 18990c738b7fddfacc3e1c0042d242a97837f3ca
ifvictr commented 5 years ago

I think the problem might be caused my Ghost trying to upload two images at the same time (original + optimized), leading to some sort of mismatch in the Git hash.

ifvictr commented 5 years ago

This issue may be related to #18.

ifvictr commented 4 years ago

Possible solution: try to fetch the latest commit before attempting to create a new file.

ifvictr commented 4 years ago

Closed by #34.