# Problem using builtin url module

**URL:** <https://community.n8n.io/t/problem-using-builtin-url-module/9593>\
**Category:** Questions\
**Tags:** node\
**Created:** [December 2, 2021, 3:57pm UTC](https://community.n8n.io/t/problem-using-builtin-url-module/9593 "2021-12-02T15:57:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arrowcircle](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/arrowcircle/32/7380_2.png) [@arrowcircle](https://community.n8n.io/u/arrowcircle)\
**Post date:** [December 2, 2021, 3:57pm UTC](https://community.n8n.io/t/problem-using-builtin-url-module/9593/1 "2021-12-02T15:57:09Z")

</div>

Hey! I am trying to use url module in my function code, but get a error. I enabled env variable NODE\_FUNCTION\_ALLOW\_BUILTIN=url (and tried to use \* as well), but my simple code does not work. Any ideas how to fix it?

```auto
const urllib = require('url');
parsed_url = urllib.URL("http://asdasd.ru/?utm_source=1&utm_medium=2")
res = { json: { url: parsed_url }}
return [res]

```

## What is the error message (if any)?

```auto
ERROR: Access denied to require 'url'

```

## Please share the workflow

## Information on your n8n setup

- **0.151.0**
- **PG**
- **OWN**
- **Docker**

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [December 2, 2021, 4:29pm UTC](https://community.n8n.io/t/problem-using-builtin-url-module/9593/2 "2021-12-02T16:29:25Z")

</div>

Hi @arrowcircle, I quickly tested this on my end, but url becomes available as expected when setting `NODE_FUNCTION_ALLOW_BUILTIN=url`. Is there a chance you didn’t recreate your docker container after changing the variable?

---

<div class="post-metadata">

**Author:** ![arrowcircle](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/arrowcircle/32/7380_2.png) [@arrowcircle](https://community.n8n.io/u/arrowcircle)\
**Post date:** [December 2, 2021, 4:41pm UTC](https://community.n8n.io/t/problem-using-builtin-url-module/9593/3 "2021-12-02T16:41:32Z")

</div>

I restarted my container, not recreated. Is it possible docker-compose is not updating env variables?

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [December 2, 2021, 4:44pm UTC](https://community.n8n.io/t/problem-using-builtin-url-module/9593/4 "2021-12-02T16:44:52Z")

</div>

My understanding is that you’d need to recreate the container in order to apply changes to for example the environment variables in your docker compose file. Something like `docker compose up --force-recreate --detach` should do the trick.

---

<div class="post-metadata">

**Author:** ![arrowcircle](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/arrowcircle/32/7380_2.png) [@arrowcircle](https://community.n8n.io/u/arrowcircle)\
**Post date:** [December 2, 2021, 5:28pm UTC](https://community.n8n.io/t/problem-using-builtin-url-module/9593/5 "2021-12-02T17:28:48Z")

</div>

same error even after removing the container

---

<div class="post-metadata">

**Author:** ![arrowcircle](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/arrowcircle/32/7380_2.png) [@arrowcircle](https://community.n8n.io/u/arrowcircle)\
**Post date:** [December 2, 2021, 5:48pm UTC](https://community.n8n.io/t/problem-using-builtin-url-module/9593/6 "2021-12-02T17:48:41Z")

</div>

so i found why it’s not working. With single argument, n8n does not handle values like

```auto
NODE_FUNCTION_ALLOW_BUILTIN="url"

```

and this works

```auto
NODE_FUNCTION_ALLOW_BUILTIN=url

```
