# Bug COSTS-177 - Logging time via the API on a non existing entity, raises an error

Project: Stream Time & Costs
Status: closed
URL: https://community.openproject.org/work_packages/COSTS-177

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 17.9.0 |
| Observed in versions | 17.7.0 |
| Bug found in version (deprecated) | 17.7.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

Sourced from AppSignal

[https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/1636](https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/1636)

`nil is not a symbol nor a string`

`lib/api/decorators/link_object.rb:63 API::Decorators::LinkObject#href`  
`lib/api/decorators/linked_resource.rb:102 API::Decorators::LinkedResource#associated_resource_default_link`  
`lib/api/decorators/linked_resource.rb:276 block in API::Decorators::LinkedResource::ClassMethods#associated_resource_default_link_lambda`  
`modules/costs/lib/api/v3/time_entries/entity_representer_factory.rb:83 BasicObject#instance_exec`  
`modules/costs/lib/api/v3/time_entries/entity_representer_factory.rb:83 block in API::V3::TimeEntries::EntityRepresenterFactory.create_link_lambda`
