# Error converting HAR to Scala

**URL:** https://community.gatling.io/t/error-converting-har-to-scala/5040
**Category:** Gatling (Open-Source)
**Created:** [May 23, 2019, 6:28pm UTC](https://community.gatling.io/t/error-converting-har-to-scala/5040 "2019-05-23T18:28:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Admiral\_Akbar](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Admiral\_Akbar](https://community.gatling.io/u/Admiral_Akbar)
#### Post date: [May 23, 2019, 6:28pm UTC](https://community.gatling.io/t/error-converting-har-to-scala/5040/1 "2019-05-23T18:28:32Z")

</div>

So far I have been able to convert HAR files without any issue, the gui app has been wonderful. While trying to convert a har covering the upload of a file I encountered the attached error. Searching google yielded zero results same with StackOverflow. Any suggestions on where to even begin debugging this?

 ![Screen Shot 2019-05-23 at 1.25.25 PM.png](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/a2fb7b35bb344fe0542864de5d0bb505617785c2.png)

---

<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: [May 23, 2019, 7:01pm UTC](https://community.gatling.io/t/error-converting-har-to-scala/5040/2 "2019-05-23T19:01:57Z")

</div>

How did you generate this HAR file?  
It looks like your file is corrupted (invalid UTF-8 encoding).

---

<div class="post-metadata">

### Author: ![Admiral\_Akbar](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Admiral\_Akbar](https://community.gatling.io/u/Admiral_Akbar)
#### Post date: [May 24, 2019, 6:57pm UTC](https://community.gatling.io/t/error-converting-har-to-scala/5040/3 "2019-05-24T18:57:24Z")

</div>

I don’t know how, but indeed the file got corrupted. Remade the HAR and it works fine now. My first suspicion was that my coworker made the HAR on a different OS caused it, but could not replicate it.
