# Why can't I catch the following error?

**URL:** <https://discourse.julialang.org/t/why-cant-i-catch-the-following-error/121712>\
**Category:** New to Julia\
**Created:** [October 24, 2024, 5:04pm UTC](https://discourse.julialang.org/t/why-cant-i-catch-the-following-error/121712 "2024-10-24T17:04:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sevi](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Sevi](https://discourse.julialang.org/u/Sevi)\
**Post date:** [October 24, 2024, 7:20pm UTC](https://discourse.julialang.org/t/why-cant-i-catch-the-following-error/121712/2 "2024-10-24T19:20:02Z")

</div>

Hi and welcome to the forum 👋

Please consider wrapping your code and terminal output in backticks (as described here: [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) ) for easier readability 🙂

Regarding your actual problem:

- What exactly is your desired output? If I understand correctly, your code should print `"Broken Pipe Error - Ignored"` if you encounter the error you mentioned, but keep running? What is the behavior you see instead? (exception/no exception; exact error message)
- I think your code as-is should probably throw an `UndefVarError` if the HTTP error occurs because your catch block inside `main()` doesn’t assign the variable `e`. Are there some parts of the code missing?

---

_[View the full topic](https://discourse.julialang.org/t/why-cant-i-catch-the-following-error/121712)._
