# Browser monitors: 401 failures on challenge-response pages

**URL:** <https://community.dynatrace.com/t/browser-monitors-401-failures-on-challenge-response-pages/43399>\
**Category:** Troubleshooting\
**Tags:** browser-monitors, synthetic-monitoring\
**Created:** [January 9, 2024, 10:10am UTC](https://community.dynatrace.com/t/browser-monitors-401-failures-on-challenge-response-pages/43399 "2024-01-09T10:10:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nandini\_balakri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nandini_balakri/32/13262_2.png) [@nandini\_balakri](https://community.dynatrace.com/u/nandini_balakri)\
**Post date:** [January 9, 2024, 10:10am UTC](https://community.dynatrace.com/t/browser-monitors-401-failures-on-challenge-response-pages/43399/1 "2024-01-09T10:10:00Z")

</div>

## **Summary**

This article explains why Dynatrace Browser monitors may fail with **401 Unauthorized errors** on challenge‑response pages and how to resolve or work around the issue.These failures typically occur when applications use dynamic authentication or bot‑protection mechanisms that are incompatible with Synthetic browser execution.

## **Problem**

When executing a Dynatrace Browser monitor:

- The monitor fails with a **401 Unauthorized error**
- Execution does not progress past initial request
- Authentication or security challenge blocks the test

This often occurs on:

- Login pages
- Applications with bot protection
- Systems using challenge‑response authentication

* * *

## **Error Behavior**

Common symptoms include:

- HTTP **401 Unauthorized** responses
- Unexpected redirects or failed navigation
- Monitor unable to load the target page

* * *

## **Cause**

This issue occurs because **challenge‑response authentication flows** :

- Require **dynamic interaction** (tokens, cookies, JavaScript execution)
- Detect and block automated browsers
- Depend on **runtime-generated values** that cannot be reused

Dynatrace Synthetic Browser monitors:

- Run with a **clean browser session each time**
- Cannot persist or replay dynamic authentication tokens
- May be identified as automated traffic

As a result: → Authentication fails, leading to **401 responses**

* * *

## **Resolution**

### ✅ **Option 1 – Use supported authentication methods**

1. Use HTTP authentication in the browser monitor settings.

2. Additionally, you might need to ignore the 401 status code in browser monitor settings in edit mode. Select **Advanced setup** and turn on **[Ignore specific status codes](https://docs.dynatrace.com/docs/shortlink/browser-monitors-config#ignore-status-codes)**.

* * *

### ✅&nbsp; **Option 2 – Work with application/security teams**

If the application uses:

- CAPTCHA
- Bot detection
- Token-based challenges

Consider:

- Whitelisting Synthetic traffic
- Allowing known test endpoints
- Providing alternative authentication paths

* * *

### ✅ **Option 3 – Validate behavior outside Dynatrace**

Before troubleshooting further:

- Confirm requests succeed in a standard browser
- Identify where the authentication flow breaks

* * *

## **Important Notes**

- This is a **limitation of challenge‑response mechanisms** , not a Dynatrace defect
- Synthetic monitors cannot always replicate:
  - Anti-bot protections
  - Advanced authentication workflows

* * *

## **When to Use This Guide**

Use this article when:

- Browser monitors return **401 Unauthorized**
- Pages include advanced authentication or bot protection
- Recording works, but execution fails

* * *

## **Best Practices**

- ✅ Test simple, stable endpoints for Synthetic monitoring
- ✅ Avoid CAPTCHA and bot-protected flows
- ✅ Use synthetic-friendly authentication mechanisms
- ✅ Validate clickpaths carefully during recording

* * *

## **What’s Next**

If the issue persists:Provide Dynatrace Support with:

- Monitor URL and configuration
- Execution results and screenshots
- Description of authentication flow

### Related reading

📖&nbsp;&nbsp;[Synthetic Troubleshooting Map](https://community.dynatrace.com/topic/250426)

📖&nbsp;&nbsp;[Navigate event](https://docs.dynatrace.com/docs/shortlink/id-brower-clickpath-events#navigate)

📖&nbsp; [Supported authentication methods in Synthetic Monitoring](https://docs.dynatrace.com/docs/shortlink/synthetic-authentication)

📖&nbsp;&nbsp;[Configure browser monitors](https://docs.dynatrace.com/docs/shortlink/browser-monitors-config)

📖&nbsp; [Ignore specific status codes](https://docs.dynatrace.com/docs/shortlink/browser-monitors-config#ignore-status-codes)

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [January 9, 2024, 10:14am UTC](https://community.dynatrace.com/t/browser-monitors-401-failures-on-challenge-response-pages/43399/2 "2024-01-09T10:14:25Z")

</div>

Great guide:) Thank you&nbsp;[@nandini\_balakri](https://community.dynatrace.com/user/19886)
