# Sage 10. TypeError: Invalid URL. Code: ERR_INVALID_URL

**URL:** https://discourse.roots.io/t/sage-10-typeerror-invalid-url-code-err-invalid-url/21863
**Category:** sage
**Tags:** sage10
**Created:** 2021-12-13T16:01:16Z
**Posts:** 5

## Post 1 by @Valera_Vilks — 2021-12-13T16:01:16Z

Created a new project on Sage 10, there was an error after “yarn dev”:  
TypeError: Invalid URL  
Code: ERR\_INVALID\_URL

As far as I understood, this had an impact after a fix was made [fix(proxy): interceptor and other new features by kellymears · Pull Request #776 · roots/bud · GitHub](https://github.com/roots/bud/pull/776).

I write a new proxy recording format in bud.config.js and it works.  
.proxy ({  
url: ‘http: [//test.test](//test.test)’,  
replace: {  
href: true,  
window: true,  
publicPath: true,  
},  
});

---

## Post 2 by @ben — 2021-12-13T16:14:42Z

> [@Valera_Vilks](#):
>
> url: ‘http: [//test.test](//test.test)’,

Do you have a space in your URL? If not, can you please use the proper code formatting to show us your config?

---

## Post 3 by @Valera_Vilks — 2021-12-13T16:22:04Z

Yes, I haven’t installed the formatting. I didn’t have a space in the url.

At this point I have a build working when I installed the new format that was described in the patch for the new version of bud.

```
.proxy({
  url: 'http://test.test',
  replace: {
    href: true,
    window: true,
    publicPath: true,
  },
});
```

---

## Post 4 by @ben — 2021-12-13T19:09:36Z

Whoops - thanks for the report :pray:

Fixed via [Fix Bud proxy by retlehs · Pull Request #2890 · roots/sage · GitHub](https://github.com/roots/sage/pull/2890)

---

## Post 5 by @system — 2022-01-24T16:01:34Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
