# Gatling Recording Static resources - Failure during execution

**URL:** <https://community.gatling.io/t/gatling-recording-static-resources-failure-during-execution/1223>\
**Category:** Gatling (Open-Source)\
**Created:** [July 28, 2014, 6:25pm UTC](https://community.gatling.io/t/gatling-recording-static-resources-failure-during-execution/1223 "2014-07-28T18:25:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://community.gatling.io/u/Guest)\
**Post date:** [July 28, 2014, 6:25pm UTC](https://community.gatling.io/t/gatling-recording-static-resources-failure-during-execution/1223/1 "2014-07-28T18:25:45Z")

</div>

Hi,

I’m trying to record webpage navigation along with static resources, as all static resources served from server. (CDN approach may be used in future)

When I try to run the recorded script, I’m seeing following errors Status 400 for some of static resources, where as expected Status code : 302.  
when I do manual navigation of webpage, I’m just seeing either status code 200 or 304. not seeing 400 - which is potential indication of gateway timeout.

19:08:03.246 [WARN] c.e.e.g.h.a.GatlingAsyncHandlerActor - Request ‘request\_105’ failed : Check ‘is’ failed, found 400 but expected 304

19:08:03.246 [WARN] c.e.e.g.h.a.GatlingAsyncHandlerActor - Request ‘request\_107’ failed : Check ‘is’ failed, found 400 but expected 304

19:08:03.247 [WARN] c.e.e.g.h.a.GatlingAsyncHandlerActor - Request ‘request\_107’ failed : Check ‘is’ failed, found 400 but expected 304

The failure does not appear when I record script, without static resources (Added filters in Recorder for .js, .css etc…)

Could you please advise, if there is any alternative to resolve this kind of issue.

Thanks,  
Raja

[testfile.scala](https://community.gatling.io/uploads/short-url/adwQTMEOKo4LZ2YKcbVEh8bzz05.scala) (21.1 KB)

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [July 28, 2014, 6:43pm UTC](https://community.gatling.io/t/gatling-recording-static-resources-failure-during-execution/1223/2 "2014-07-28T18:43:20Z")

</div>

Version?  
Does this only happens under load or with just one single user?

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://community.gatling.io/u/Guest)\
**Post date:** [July 31, 2014, 8:52am UTC](https://community.gatling.io/t/gatling-recording-static-resources-failure-during-execution/1223/3 "2014-07-31T08:52:34Z")

</div>

Hello Stephane,

Many thanks for quick response.

I’m using Gatling version 1.5.6.  
This issue is resolved, appears to be my local environment issue.

Best Regards,  
Raja

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [July 31, 2014, 8:55am UTC](https://community.gatling.io/t/gatling-recording-static-resources-failure-during-execution/1223/4 "2014-07-31T08:55:54Z")

</div>

Glad to hear.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Dor\_Levy](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@Dor\_Levy](https://community.gatling.io/u/Dor_Levy)\
**Post date:** [August 31, 2014, 4:31pm UTC](https://community.gatling.io/t/gatling-recording-static-resources-failure-during-execution/1223/5 "2014-08-31T16:31:54Z")

</div>

hi Raja,  
can you please share what was your local issues?  
i’m experiencing the same issue

Thanks,  
Dor

---

<div class="post-metadata">

**Author:** ![Lindaja](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@Lindaja](https://community.gatling.io/u/Lindaja)\
**Post date:** [October 20, 2014, 7:13pm UTC](https://community.gatling.io/t/gatling-recording-static-resources-failure-during-execution/1223/6 "2014-10-20T19:13:45Z")

</div>

Hi Raja,

Could you explain your local environment issue? I met the same problem,

Thanks,

Lindaja

在 2014年7月31日星期四UTC-4上午4时52分34秒，Raja写道：
