# Bug OP-17163 - Missing/wrong error handling for periodic activity tab updates

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-17163

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Comments and activity |
| Target versions | 16.0.1 |
| Observed in versions | 15.5.0 |
| Sprint | 16.0.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.5.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Bruno Pagno |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Open the activities tab of a work package
    
2.  Wait for the web server to return an unexpected errorneous response (e.g. an HTTP 502 or similar)
    
    1.  In development this can be provoked by changing the response for `WorkPackages::ActivitiesTabController#update_streams`
        
    2.  on a real instance/QA: Set a session timeout in administration auth settings and wait for timeout to occur (put browser tab into background)
        

### What is the buggy behavior?

The entirety of the returned response body is appended to the page as HTML

### What is the expected behavior?

*   No persistent changes to the page layout in unexpected locations
    
*   Optionally: An error message or indicator that updating comments failed
    

###   

### Screenshots and other files

<img class="image_resized op-uc-image op-uc-image_inline" style="width:775px;" src="/api/v3/attachments/590885/content">

###   

###   

<img class="image_resized op-uc-image op-uc-image_inline" style="width:789px;" src="/api/v3/attachments/604761/content">

### Environment information

**OpenProject version**

release-branch ahead of 16.0
