---
title: "Discussion on \"Debugging Feb #2 : Cannot set headers after they are sent to the client\" | Hashnode"
description: "Discussion on \"Debugging Feb #2 : Cannot set headers after they are sent to the client\". In the series of debugging Feb, I am explaining the different types of errors that I encountered while working on a different project which ultimately became the reason to stay long hours in front of my laptop screen. Wrapping up the project was the ..."
url: "https://hashnode.com/posts/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client/6406bc89b4384b268507d1ad"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Debugging Feb #2 : Cannot set headers after they are sent to the client](https://blog.rajeshkhadka.info.np/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client?utm_source=hashnode&utm_medium=feed)

In the series of debugging Feb, I am explaining the different types of errors that I encountered while working on a different project which ultimately became the reason to stay long hours in front of my laptop screen. Wrapping up the project was the ...

Mar 7, 2023 · 5 min read · blog.rajeshkhadka.info.np  
Updated Mar 10, 2023  
Read the article

-   [#debuggingfeb](https://hashnode.com/tag/debuggingfeb)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Rajesh Khadka](https://hashnode.com/@rajeshkhadka)

@rajeshkhadka · Nepal

  
[View profile](https://hashnode.com/@rajeshkhadka)

Software Developer 👩‍💻 | Technical Writer 📝 | Student 🎓

Software Developer 👩‍💻 | Technical Writer 📝 | Student 🎓

## Responses 6

Markdown supported · ⌘↵ to post

[Sushil Bhattarai](https://hashnode.com/@sushilbhattarai)

[Jan 29, 2024](https://hashnode.com/posts/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client/6406bc89b4384b268507d1ad/comment/65b74adbadf6aae6f89c3540)

I didn't like this.

[Rajesh Khadka](https://hashnode.com/@rajeshkhadka)

[Jan 29, 2024](https://hashnode.com/posts/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client/6406bc89b4384b268507d1ad/comment/65b74adbadf6aae6f89c3540#reply-65b750ec8b98656a8049b1d9)

Testing 🤣🤣

[Saroj Regmi](https://hashnode.com/@saroj-regmi)

[Mar 10, 2023](https://hashnode.com/posts/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client/6406bc89b4384b268507d1ad/comment/640ad65ce3de6419e7484dd3)

Interesting blog.

[Sanskar Lamsal](https://hashnode.com/@sanskaar)

[Mar 9, 2023](https://hashnode.com/posts/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client/6406bc89b4384b268507d1ad/comment/640952104b4818e3636f7b1f)

Well sometimes looking at the code helps!👀

[Rajesh Khadka](https://hashnode.com/@rajeshkhadka)

[Mar 9, 2023](https://hashnode.com/posts/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client/6406bc89b4384b268507d1ad/comment/640952104b4818e3636f7b1f#reply-640a22976b5ccef6ff210aba)

yes it do works 😴 sometimes !!

[Utsav bhattarai](https://hashnode.com/@utsavbhattarai)

[Mar 7, 2023](https://hashnode.com/posts/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client/6406bc89b4384b268507d1ad/comment/6406cec4404b42d068ae2ce3)

Nice debugging tips!

[Rajesh Khadka](https://hashnode.com/@rajeshkhadka)

[Mar 7, 2023](https://hashnode.com/posts/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client/6406bc89b4384b268507d1ad/comment/6406cec4404b42d068ae2ce3#reply-6406e2896c8cbdd4116b5fa4)

Hope it helps you ! 😃

[Utsav bhattarai](https://hashnode.com/@utsavbhattarai)

[Mar 7, 2023](https://hashnode.com/posts/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client/6406bc89b4384b268507d1ad/comment/6406ceb7404b42d068ae2cdb)

Nice debugging tips!

[Aashish Panthi](https://hashnode.com/@aashishpanthi)

[Mar 7, 2023](https://hashnode.com/posts/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client/6406bc89b4384b268507d1ad/comment/6406ccbf404b42d068ae2c71)

Man, you have a lot of debugging stories.

[Rajesh Khadka](https://hashnode.com/@rajeshkhadka)

[Mar 7, 2023](https://hashnode.com/posts/debugging-feb-2-cannot-set-headers-after-they-are-sent-to-the-client/6406bc89b4384b268507d1ad/comment/6406ccbf404b42d068ae2c71#reply-6406e2a96c8cbdd4116b5fae)

There are many more in pipelines !😂 Hope, I will publish them soon
