Content
View differences
Updated by Eric Schubert over 2 years ago
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. 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.