# Swagger Infer Error

**URL:** <https://forum.radzen.com/t/swagger-infer-error/2780>\
**Category:** Uncategorized\
**Created:** [February 25, 2020, 4:41pm UTC](https://forum.radzen.com/t/swagger-infer-error/2780 "2020-02-25T16:41:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshbooker](https://forum.radzen.com/user_avatar/forum.radzen.com/joshbooker/32/12624_2.png) [@joshbooker](https://forum.radzen.com/u/joshbooker)\
**Post date:** [February 25, 2020, 4:41pm UTC](https://forum.radzen.com/t/swagger-infer-error/2780/1 "2020-02-25T16:41:24Z")

</div>

Any ideas?

```
[2020-02-25 11:36:38.773] [error] SyntaxError: Unexpected token ﻿ in JSON at position 0
at JSON.parse (<anonymous>)
at hi.infer (file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:290:2926174)
at hi.componentDidMount (file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:290:2925980)
at Fo (file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:189:82387)
at Vo (file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:189:85062)
at file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:189:98269
at Object.t.unstable_runWithPriority (file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:197:3218)
at Cs (file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:189:98204)
at Is (file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:189:97980)
at ws (file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:189:97325)
at Ls (file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:189:98700)
at Sn (file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:189:30568)

```

Is there a file size limit? the swagger is 670K characters.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [February 25, 2020, 6:03pm UTC](https://forum.radzen.com/t/swagger-infer-error/2780/2 "2020-02-25T18:03:54Z")

</div>

There shouldn't be a size limit but there could be a hidden BOM handling issue. Is that swagger file something you can edit? Does it have a BOM? Does it work if you remove the BOM? Worth mentioning that Radzen currently supports only Swagger 2.0.

---

<div class="post-metadata">

**Author:** ![joshbooker](https://forum.radzen.com/user_avatar/forum.radzen.com/joshbooker/32/12624_2.png) [@joshbooker](https://forum.radzen.com/u/joshbooker)\
**Post date:** [February 25, 2020, 6:28pm UTC](https://forum.radzen.com/t/swagger-infer-error/2780/3 "2020-02-25T18:28:45Z")

</div>

Thanks for your reply. Yeah it's a local file. Just text supposed to be UTF-8. How would I check for BOM?

---

<div class="post-metadata">

**Author:** ![joshbooker](https://forum.radzen.com/user_avatar/forum.radzen.com/joshbooker/32/12624_2.png) [@joshbooker](https://forum.radzen.com/u/joshbooker)\
**Post date:** [February 25, 2020, 6:37pm UTC](https://forum.radzen.com/t/swagger-infer-error/2780/4 "2020-02-25T18:37:02Z")

</div>

That was it. Removed BOM using Notepad++  
Thanks!

---

<div class="post-metadata">

**Author:** ![joshbooker](https://forum.radzen.com/user_avatar/forum.radzen.com/joshbooker/32/12624_2.png) [@joshbooker](https://forum.radzen.com/u/joshbooker)\
**Post date:** [February 25, 2020, 6:53pm UTC](https://forum.radzen.com/t/swagger-infer-error/2780/5 "2020-02-25T18:53:10Z")

</div>

Spoke too soon.

 ![image](https://forum.radzen.com/uploads/default/original/2X/0/0edc1d931bceabc0ee66639e03764c4873be878a.png)

Is there a way to select only a subset of paths from swagger?

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [February 26, 2020, 12:28pm UTC](https://forum.radzen.com/t/swagger-infer-error/2780/6 "2020-02-26T12:28:27Z")

</div>

No, there isn't. We better check that swagger file of yours. Can you either attach it here or send it over at [info@radzen.com](mailto:info@radzen.com)?
