<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Error Handling on DevTrace — 글로벌 개발 에러 트러블슈팅</title><link>https://tokkabi.com/tags/error-handling/</link><description>Recent content in Error Handling on DevTrace — 글로벌 개발 에러 트러블슈팅</description><generator>Hugo -- 0.125.0</generator><language>ko</language><lastBuildDate>Mon, 17 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tokkabi.com/tags/error-handling/index.xml" rel="self" type="application/rss+xml"/><item><title>Express에서 'Can't set headers after they are sent' 오류 해결하기</title><link>https://tokkabi.com/posts/error-cant-set-headers-after-they-are-sent/</link><pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/error-cant-set-headers-after-they-are-sent/</guid><description>Node.js/Express에서 &amp;#39;Can&amp;#39;t set headers after they are sent to the client&amp;#39;가 발생하는 원인은 응답이 시작된 뒤 헤더를 설정하거나 중복 응답을 보내기 때문입니다. 콜백 중복 호출·redirect 후 에러 발생 등 원인을 파악하고 res.header를 본문 전에만 호출하는 해결책을 제시합니다.</description></item><item><title>Node.js uncaughtException 처리 방법 — 처리되지 않은 예외로 프로세스가 종료되는 문제</title><link>https://tokkabi.com/posts/nodejs-handling-uncaught-exceptions/</link><pubDate>Sun, 16 Aug 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/nodejs-handling-uncaught-exceptions/</guid><description>Node.js에서 처리되지 않은 예외(Uncaught Exception)가 발생하면 프로세스 전체가 종료됩니다. process.on(&amp;#39;uncaughtException&amp;#39;) 사용법과 async-safe한 에러 처리 전략(return Error, err-first callback, event emit)을 통해 이 문제를 해결하는 방법을 다룹니다.</description></item><item><title>Python 크래시 로그 남기기 — 원격 서버에서 stderr 리다이렉션</title><link>https://tokkabi.com/posts/how-to-log-a-python-crash/</link><pubDate>Fri, 31 Jul 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/how-to-log-a-python-crash/</guid><description>원격 라즈베리 파이에서 실행 중인 Python 스크립트가 몇 시간 뒤 크래시될 때 오류 메시지를 파일로 남기는 방법을 다룹니다. 셸 리다이렉션(&amp;gt;&amp;gt; file 2&amp;gt;&amp;amp;1), logging.exception, sys.exc_info() 기반 크래시 로그 작성까지 단계별로 정리합니다.</description></item><item><title>JSON.parse 예외 안전하게 처리하기 — try-catch로 404/무효 JSON 오류 잡기</title><link>https://tokkabi.com/posts/proper-way-to-catch-exception-from-jsonparse/</link><pubDate>Thu, 23 Jul 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/proper-way-to-catch-exception-from-jsonparse/</guid><description>JSON.parse는 유효하지 않은 JSON 문자열(예: 404 응답 본문)을 파싱할 때 예외를 던집니다. try-catch 블록으로 파싱 예외를 안전하게 잡고, 성공 시에만 파싱 결과를 사용하는 방법을 5단계로 설명합니다.</description></item></channel></rss>