# Error JavaScript without Stacktrace

**URL:** <https://community.dynatrace.com/t/error-javascript-without-stacktrace/34193>\
**Category:** Open Q&A\
**Tags:** problem-detection, javascript\
**Created:** [February 18, 2022, 2:21pm UTC](https://community.dynatrace.com/t/error-javascript-without-stacktrace/34193 "2022-02-18T14:21:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrielle](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@gabrielle](https://community.dynatrace.com/u/gabrielle)\
**Post date:** [February 18, 2022, 2:21pm UTC](https://community.dynatrace.com/t/error-javascript-without-stacktrace/34193/1 "2022-02-18T14:21:21Z")

</div>

Hi.

The application has some java script errors, but when I analyze it, I don’t see stacktrace. Some other errors from the same application, I can see stacktrace. Could you say what could cause this difference?

Unexpected token ‘\<’

 ![gabrielle_0-1645193978373.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/8/583067ea515c68d62cb4d87d07e8b2c6f63c56f7.png)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 4, 2022, 2:29am UTC](https://community.dynatrace.com/t/error-javascript-without-stacktrace/34193/2 "2022-06-04T02:29:00Z")

</div>

Are you able to find the transaction via the purepaths?

---

<div class="post-metadata">

**Author:** ![asp-vm](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@asp-vm](https://community.dynatrace.com/u/asp-vm)\
**Post date:** [April 19, 2024, 12:47pm UTC](https://community.dynatrace.com/t/error-javascript-without-stacktrace/34193/3 "2024-04-19T12:47:40Z")

</div>

I have the same issue, however, my application is agentless, so not sure if that has a bearing. Though, even with agentless configuration, we have stacktraces from some errors but not others. Would be good to know why this would be the case.

---

<div class="post-metadata">

**Author:** ![PierreGutierrez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pierregutierrez/32/5934_2.png) [@PierreGutierrez](https://community.dynatrace.com/u/PierreGutierrez)\
**Post date:** [April 22, 2024, 4:38pm UTC](https://community.dynatrace.com/t/error-javascript-without-stacktrace/34193/4 "2024-04-22T16:38:59Z")

</div>

HI&nbsp;[@gabrielle](https://community.dynatrace.com/user/45275)&nbsp;,&nbsp;[@asp-vm](https://community.dynatrace.com/user/72736)&nbsp;  
I was thinking that it’s a problem UI, maybe with the browser (In the past, when I zoomed in and out in Dynatrace UI, some sectors would disappear. This especially happened to me at the beginning with the new Dynatrace interface, in the sectors where I identified it they have already corrected it).

 ![PierreGutierrez_0-1713803846283.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/5/e53e8a291532647552d44ee443bdf3fbac281507.png)

After that, I have always found the “Stacktrace” sector, even if it has no related information.

---

<div class="post-metadata">

**Author:** ![asp-vm](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@asp-vm](https://community.dynatrace.com/u/asp-vm)\
**Post date:** [April 23, 2024, 8:15am UTC](https://community.dynatrace.com/t/error-javascript-without-stacktrace/34193/5 "2024-04-23T08:15:01Z")

</div>

Hi&nbsp;[@PierreGutierrez](https://community.dynatrace.com/user/45543)&nbsp;, my issue is not that there is no Stack trace section visible, but more trying to understand the reason why there is no Stack trace at all. So I have exactly the same as your screenshot. I just wanted to understand what scenarios would result in no stack trace being collected.

---

<div class="post-metadata">

**Author:** ![PierreGutierrez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pierregutierrez/32/5934_2.png) [@PierreGutierrez](https://community.dynatrace.com/u/PierreGutierrez)\
**Post date:** [April 23, 2024, 4:12pm UTC](https://community.dynatrace.com/t/error-javascript-without-stacktrace/34193/6 "2024-04-23T16:12:05Z")

</div>

Hi&nbsp;[@asp-vm](https://community.dynatrace.com/user/72736)

**Web application source maps**

Dynatrace automatically attempts to download all available source maps and JavaScript source files from public CDNs. You can optionally upload source maps and source files from each JavaScript error details page.  
For show Stacktrace , dynatrace try to detect in files ( Java script min or source map) the error detected.

It is possible that dynatrace is not able to download these files and for that reason it is not able to display any type of StackTrace details.

I understand that currently it is only possible to upload “JavaScript” and “Source map”, as long as an error detail is displayed.

 ![PierreGutierrez_0-1713886894254.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/6/f6c9576941d306e4d828abd98139681dfbc4be37.png)

> **[Source map support for JavaScript error analysis in RUM Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/web-applications/analyze-and-use/source-map-support-for-javascript-error-analysis)**
>
> Learn how source maps make it easy to analyze, reproduce, and fix JavaScript errors.

Maybe you can try loading the source map of other JavaScript errors (where it does allow you to load the file) and then load the “source file (JavaScript)”, as the recommendation indicates.&nbsp;

> **[Source map support for JavaScript error analysis in RUM Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/web-applications/analyze-and-use/source-map-support-for-javascript-error-analysis)**
>
> Learn how source maps make it easy to analyze, reproduce, and fix JavaScript errors.

 ![PierreGutierrez_1-1713888583292.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/a/aa1784e1c7237eb2532b40552eae889da7699070.png)

I hope to be helpful 💪

---

<div class="post-metadata">

**Author:** ![PierreGutierrez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pierregutierrez/32/5934_2.png) [@PierreGutierrez](https://community.dynatrace.com/u/PierreGutierrez)\
**Post date:** [April 23, 2024, 8:23pm UTC](https://community.dynatrace.com/t/error-javascript-without-stacktrace/34193/7 "2024-04-23T20:23:23Z")

</div>

[@asp-vm](https://community.dynatrace.com/user/72736)&nbsp; other reason could be

There is no stacktrace, because this is not a javascript error, this is a parsing error for a javascript file.

The file is invalid, e.g. because it contains JSON (likely your screenshot) or html (then it usually says unexpected token \<) instead of proper javascript.  
For HTML files, this usually happens when a file is deleted and the webserver then e.g. returns a 404 page or some internal error happens and the webserver returns a 500 page.

---

<div class="post-metadata">

**Author:** ![asp-vm](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@asp-vm](https://community.dynatrace.com/u/asp-vm)\
**Post date:** [April 24, 2024, 8:20am UTC](https://community.dynatrace.com/t/error-javascript-without-stacktrace/34193/8 "2024-04-24T08:20:04Z")

</div>

Thank you. This is really helps.
