Git Commit & File Hashing problem
See original GitHub issueHi,
I have a problem for a few days with canvas-sketch exports. During my exports with cmd + K I have a message in the console who said :
→ Nothing new to commit.
Error: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (_http_outgoing.js:470:11)
at respond (/usr/local/lib/node_modules/canvas-sketch-cli/src/middleware.js:62:9)
at commit.then.result (/usr/local/lib/node_modules/canvas-sketch-cli/src/middleware.js:144:7)
at process._tickCallback (internal/process/next_tick.js:68:7)
I don’t know why, and each time the canvas is refreshed, the exported drawing always has the same hash.
If somebody have an idea 😃
Thank you
Julien
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
hook - In Git, how can I write the current commit hash to a file ...
Use a script to increment 'commit id' and include it somewhere. Ugly .gitignore the file you're going to store the hash into. Not...
Read more >hash-function-transition Documentation - Git
It uses the SHA-1 hash function to name content. For example, files, directories, and revisions are referred to by hash values unlike in...
Read more >Git: Cryptographic Hashes - Eric Sink
When you commit a file into your repository, Git calculates and remembers the hash of the contents of the file. When you later...
Read more >Whatever happened to SHA-256 support in Git? - LWN.net
Yes, so you could replace the contents of a file (blob object), or the tree object, or the commit object itself, by finding...
Read more >Oh Shit, Git!?!
Oh shit, I need to undo my changes to a file! # find a hash for a commit before the file was changed...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@aaronpenne Can you try
npm install canvas-sketch-cli@1.11.13 --globaland then re-run and let me know if the error persists?(If you’re using the tool locally e.g. in package.json scripts just use
--saveinstead of--global)Hi,
I get this error every time I use the cmd+K feature. I am using node v14.15.1
Changes are added and commited but the error is always triggered and canvas-sketch quits. I tried to investigate but failed for now 🙂