# Bug OP-14237 - [AppSignal] undefined method status for HTTPX::ErrorResponse

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.3.0 |
| Observed in versions | 13.2.0 |
| Sprint | 13.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.2.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 | OP Dev Titan Team |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

See [https://appsignal.com/openproject-gmbh/sites/62d6c55083eb673480474bf9/exceptions/incidents/12389](https://appsignal.com/openproject-gmbh/sites/62d6c55083eb673480474bf9/exceptions/incidents/12389)

This bug is caused by the _modules/storages/app/services/storages/group\_folder\_properties\_sync\_service.rb_

```ruby
    def format_and_log_error(error, context = {})
      error_message = context.merge({ command: error.data.source,
                                      message: error.log_message,
                                      data: { status: error.data.payload.status.to_s, body: error.data.payload.body.to_s } })

      OpenProject.logger.warn error_message.to_json
    end
```

`error.data.payload.status` throws, as the payload is sometimes an `HTTPX::ErrorResponse`. The error handling needs to get updated, similar to what was done in the queries and commands itself.
