# Error while adding 'Referer' header

**URL:** <https://community.gatling.io/t/error-while-adding-referer-header/5835>\
**Category:** Gatling (Open-Source)\
**Created:** [October 9, 2020, 11:23am UTC](https://community.gatling.io/t/error-while-adding-referer-header/5835 "2020-10-09T11:23:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lenin\_raj](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@lenin\_raj](https://community.gatling.io/u/lenin_raj)\
**Post date:** [October 9, 2020, 11:23am UTC](https://community.gatling.io/t/error-while-adding-referer-header/5835/1 "2020-10-09T11:23:24Z")

</div>

Hi there,

I use the latest gatling version 3.4.0.

I got a soap request to test , and it requires few headers to be added .  
I dont see any issues in adding other headers.

However, below error is displayed , when I try to add the header " **Referer : SOAPTEST**",  
and unable to run the script.

[ERROR] i.g.h.a.HttpRequestAction - ‘httprequest-1’ failed to execute: Failed to build request : j.l.IllegalArgumentException: **value could not be parsed into a proper uri, missing scheme**

Note: Exact same request with this header returns success response in the postman & Jmeter.

Could not find anything relevant to this in the documentation.  
Appreciate your response ,as we are struggling with this issue since last few days , thanks.

Regards  
Lenin

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [October 9, 2020, 12:01pm UTC](https://community.gatling.io/t/error-while-adding-referer-header/5835/2 "2020-10-09T12:01:31Z")

</div>

I can’t reproduce and doubt this is related to the Referer header. I don’t recall us parsing it.

As required in the [group terms](https://groups.google.com/g/gatling):  
**Provide a** **Short, Self Contained, Correct (Compilable), Example (see** **[http://sscce.org/](http://sscce.org/))**

---

<div class="post-metadata">

**Author:** ![lenin\_raj](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@lenin\_raj](https://community.gatling.io/u/lenin_raj)\
**Post date:** [October 10, 2020, 3:04am UTC](https://community.gatling.io/t/error-while-adding-referer-header/5835/3 "2020-10-10T03:04:22Z")

</div>

sorry for that.

Below is the example ( made use of the sample script, comes along with installation ) .However,my actual test script looks similar, wherein I need to set the ‘Referer’ header for a SOAP web service using POST method .

When i try to run the below code snippet , i observe the below error ,  
**Note** : This error does not happen when i use the GET method, instead of POST .

[ERROR] i.g.h.a.HttpRequestAction - ‘httprequest-1’ failed to execute: Failed to build request : j.l.IllegalArgumentException: **value could not be parsed into a proper uri, missing scheme**

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [October 10, 2020, 7:25am UTC](https://community.gatling.io/t/error-while-adding-referer-header/5835/4 "2020-10-10T07:25:46Z")

</div>

Fixed, thanks for reporting!  
[https://github.com/gatling/gatling/issues/3984](https://github.com/gatling/gatling/issues/3984)

---

<div class="post-metadata">

**Author:** ![lenin\_raj](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@lenin\_raj](https://community.gatling.io/u/lenin_raj)\
**Post date:** [October 10, 2020, 8:41am UTC](https://community.gatling.io/t/error-while-adding-referer-header/5835/5 "2020-10-10T08:41:53Z")

</div>

thanks a ton for the quick fix.  
So if I try to download Gatling from the below link , will that have the fix for this issue ?  
[https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-bundle/3.4.0/gatling-charts-highcharts-bundle-3.4.0-bundle.zip](https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-bundle/3.4.0/gatling-charts-highcharts-bundle-3.4.0-bundle.zip)

sorry, i never tried this before.

---

<div class="post-metadata">

**Author:** ![lenin\_raj](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@lenin\_raj](https://community.gatling.io/u/lenin_raj)\
**Post date:** [October 10, 2020, 9:00am UTC](https://community.gatling.io/t/error-while-adding-referer-header/5835/6 "2020-10-10T09:00:04Z")

</div>

Just tried downloading the latest from the below link, and observe the issue still.  
[https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-bundle/3.4.0/gatling-charts-highcharts-bundle-3.4.0-bundle.zip](https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-bundle/3.4.0/gatling-charts-highcharts-bundle-3.4.0-bundle.zip)

please let me know how to get the latest bundle with the fix .

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [October 10, 2020, 10:47am UTC](https://community.gatling.io/t/error-while-adding-referer-header/5835/7 "2020-10-10T10:47:08Z")

</div>

As flagged on the Github ticket, this fix will be shipped in the next fix release: 3.4.1.

---

<div class="post-metadata">

**Author:** ![lenin\_raj](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@lenin\_raj](https://community.gatling.io/u/lenin_raj)\
**Post date:** [October 10, 2020, 11:33am UTC](https://community.gatling.io/t/error-while-adding-referer-header/5835/8 "2020-10-10T11:33:38Z")

</div>

Thanks for that.Appreciate your support here.  
Can you please advise if there is any work around to handle this issue with 3.4.0 ?

As we plan few performance testing deliverables using Gatling over next few weeks for our next project release , looking for some alternate options in gatling to handle this, if any… if not, planning to manage our current release with some other tools ,until we get the fix available for us to use.
