# Started getting: Failed to normalize URL string. Returning in =

**URL:** <https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034>\
**Category:** support\
**Created:** [January 6, 2017, 2:41pm UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034 "2017-01-06T14:41:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulKinlan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/paulkinlan/32/578_2.png) [@PaulKinlan](https://discourse.gohugo.io/u/PaulKinlan)\
**Post date:** [January 6, 2017, 2:41pm UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034/1 "2017-01-06T14:41:58Z")

</div>

Hi all,

I have a system that posts my builds my blog and pushes it live whenever I make a change. On travis where the build happens it uses the latest version of hugo (it does a go get -v ) and today I noticed that I get “Failed to normalize URL string. Returning in = “2017-3-predictions-for-the-web-and-platforms.html”” for every markdown file, where as yesterday I didn’t get any issues.

My loacl version was 0.17. and I just upgraded it to 0.19 and I am having trouble working out the issues and if I can fix it, or if I should wait for master to update.

Travis build:[https://travis-ci.org/PaulKinlan/paul.kinlan.me/builds/189511876](https://travis-ci.org/PaulKinlan/paul.kinlan.me/builds/189511876) (error happens in here)  
Repo for my blog: [https://github.com/PaulKinlan/paul.kinlan.me](https://github.com/PaulKinlan/paul.kinlan.me) in case someone can spot something I am doing wrong.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [January 6, 2017, 2:53pm UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034/2 "2017-01-06T14:53:16Z")

</div>

> [@PaulKinlan](#):
>
> [Travis CI - Test and Deploy with Confidence](https://travis-ci.org/PaulKinlan/paul.kinlan.me/builds/189511876)

Out of curiosity, I tested your site – builds fine here.

Which means, I guess, that your installation method is faulty. We should update the docs about this, maybe, but doing any `go get hugo` cannot be “trusted” 100% anymore (you may get a too new version of a library) – Hugo now manages its dependencies.

---

<div class="post-metadata">

**Author:** ![jeosol](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@jeosol](https://discourse.gohugo.io/u/jeosol)\
**Post date:** [January 6, 2017, 4:10pm UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034/3 "2017-01-06T16:10:01Z")

</div>

I should add that I just updated my hugo version like an hour (or ago) and also are getting lots of “Failed to normalized URL string” errors also.

Everything seem to work okay with my old version. Since I started with Hugo more frequently again, I figure I should update the tool.

---

<div class="post-metadata">

**Author:** ![digitalcraftsman](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/digitalcraftsman/32/4142_2.png) [@digitalcraftsman](https://discourse.gohugo.io/u/digitalcraftsman)\
**Post date:** [January 6, 2017, 4:45pm UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034/4 "2017-01-06T16:45:21Z")

</div>

Today, I faced the same problem. Use the govendor tool to fetch the correct versions of Hugo’s dependencies.

---

<div class="post-metadata">

**Author:** ![misterorion](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/misterorion/32/2371_2.png) [@misterorion](https://discourse.gohugo.io/u/misterorion)\
**Post date:** [January 6, 2017, 4:56pm UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034/5 "2017-01-06T16:56:00Z")

</div>

Yep. As of today, I am getting the “Failed to normalize URL string” error.

My Travis build was passing yesterday, and failing today.

Here is the result of my build:

[https://travis-ci.org/misterorion/freud2lacan](https://travis-ci.org/misterorion/freud2lacan)

---

<div class="post-metadata">

**Author:** ![davidshorter](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@davidshorter](https://discourse.gohugo.io/u/davidshorter)\
**Post date:** [January 7, 2017, 2:11am UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034/6 "2017-01-07T02:11:49Z")

</div>

I am seeing the same thing.

Can build locally on version v0.18.1

Using go get -u -v [github.com/spf13/hugo](http://github.com/spf13/hugo) on my travis CI build with version v0.19-DEV fails with error ERROR 2017/01/07 01:57:34 Failed to normalize URL string. Returning in = “/”.

---

<div class="post-metadata">

**Author:** ![feipeng\_yang](https://avatars.discourse-cdn.com/v4/letter/f/e274bd/32.png) [@feipeng\_yang](https://discourse.gohugo.io/u/feipeng_yang)\
**Post date:** [January 7, 2017, 2:19am UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034/7 "2017-01-07T02:19:33Z")

</div>

I met the same problem in travisCI building, following is my solution:

Modify the .travis.yml file:

From:

* * *

```
install:
    - go get -u -v github.com/spf13/hugo
  
script:
    - hugo

```

* * *

To

* * *

```
install:
    - go get -u -v github.com/kardianos/govendor
    - go get -u -v github.com/spf13/hugo
    - cd $GOPATH/src/github.com/spf13/hugo && govendor sync && go install
  

script:
    - cd $HOME/gopath/src/github.com/YourBlogName/YourBlogName.github.io && hugo

```

* * *

Hope this will help you.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [January 7, 2017, 10:53am UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034/8 "2017-01-07T10:53:15Z")

</div>

Note that if you don’t need the shiniest new Hugo features, doing something like this may give you a more stable build:

[https://github.com/bep/docuapi/blob/master/ci-install-hugo.sh](https://github.com/bep/docuapi/blob/master/ci-install-hugo.sh)

---

<div class="post-metadata">

**Author:** ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)\
**Post date:** [January 9, 2017, 2:27pm UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034/9 "2017-01-09T14:27:34Z")

</div>

> [@feipeng\_yang](#):
>
> govendor sync

Thanks. I faced the same problem on 0.19 DEV and installing govendor and running `govendor sync` helped.

---

<div class="post-metadata">

**Author:** ![MarkDBlackwell](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/markdblackwell/32/1924_2.png) [@MarkDBlackwell](https://discourse.gohugo.io/u/MarkDBlackwell)\
**Post date:** [January 10, 2017, 1:46pm UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034/10 "2017-01-10T13:46:35Z")

</div>

All seems fine, except:

```
$ go get -d -t -u github.com/kardianos/govendor/...
$ go get -d -t -u github.com/spf13/hugo/...
$ go build -a -i github.com/kardianos/govendor/...
$ go install github.com/kardianos/govendor/...
$ cd $GOPATH/src/github.com/spf13/hugo
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
$ govendor sync
$ git diff

```

is giving me:

```
diff --git a/vendor/vendor.json b/vendor/vendor.json
index f397393..52fe78a 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -257,7 +257,7 @@
                        "revisionTime": "2016-12-08T18:21:42Z"
                },
                {
- "checksumSHA1": "J7o9HQd7rg294kEa7P2fllTsArs=",
+ "checksumSHA1": "WASQjQVYHiVtAOxvRbl6I23etGE=",
                        "path": "github.com/spf13/cast",
                        "revision": "56a7ecbeb18dde53c6db4bd96b541fd9741b8d44",
                        "revisionTime": "2016-12-24T17:25:03Z"

```

Supposedly, in my next commit, I shouldn’t include this change. Instead, what should I do?

---

<div class="post-metadata">

**Author:** ![MarkDBlackwell](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/markdblackwell/32/1924_2.png) [@MarkDBlackwell](https://discourse.gohugo.io/u/MarkDBlackwell)\
**Post date:** [January 10, 2017, 1:58pm UTC](https://discourse.gohugo.io/t/started-getting-failed-to-normalize-url-string-returning-in/5034/11 "2017-01-10T13:58:31Z")

</div>

P.S. I’m on the master branch:

```
$ git status --short --branch
## master...origin/master
 M vendor/vendor.json

$ git log -n 1 --oneline
d6000a2 all: Refactor to nonglobal template handling

```

EDIT: @bep answered [here](https://discuss.gohugo.io/t/keeping-vendor-tree-in-sync-with-master/4670/6).
