# \#undefinedfunctionerror

**URL:** https://forum.elixirforum.com/tag/undefinedfunctionerror/2975.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Getting UndefinedFunctionError for a variable, even after it is well defined](https://forum.elixirforum.com/t/getting-undefinedfunctionerror-for-a-variable-even-after-it-is-well-defined/43186)

<div class="topic-metadata">

**Author:** [@r12543](https://forum.elixirforum.com/u/r12543)\
**Replies:** 5\
**Last updated:** [October 19, 2021, 11:19am UTC](https://forum.elixirforum.com/t/getting-undefinedfunctionerror-for-a-variable-even-after-it-is-well-defined/43186 "2021-10-19T11:19:47Z")

</div>

Hello, I am getting the following error. Code is also mentioned below. %UndefinedFunctionError{arity: 0, function: :offset, message: nil, module: nil, reason: nil} {offset, \_} = Integer.parse(headers\["upload-offset"\])…
