Content
View differences
Updated by Jonatan Zint over 7 years ago
I'd like to report a bug in OP 8.1.0
The POST Method for /api/v3/time_entries returs a 500 Error no matter what i try to submit. The logs show the following:
```text
App 439 output: Started POST "/api/v3/time_entries" for 91.65.29.110 at 2018-11-18 10:32:07 +0000
App 439 output: Grape rescuing from error: API::Errors::InternalError
App 439 output:
App 439 output: Original error: #<Grape::Exceptions::MethodNotAllowed: Grape::Exceptions::MethodNotAllowed>
App 439 output:
App 439 output: Stacktrace:
App 439 output:
App 439 output: /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:254:in `block in run'
App 439 output: /usr/local/bundle/gems/activesupport-5.1.6/lib/active_support/notifications.rb:168:in `instrument'
App 439 output: /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:243:in `run'
App 439 output: /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:313:in `block in build_stack'
App 439 output: /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
App 439 output: /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/base.rb:31:in `call!'
App 439 output: /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/base.rb:24:in `call'
```
The request payload looked like this and filled the same fields as found in the documentation example:
{
"spentOn": "2018-08-02",
"hours": "PT1H0M",
"comment": "",
"_links": {
"project": {
"href": "/api/v3/projects/2"
},
"workPackage": {
"href": "/api/v3/work_packages/84"
},
"activity": {
"href": "/api/v3/time_entries/activities/1"
}
}
}
The POST Method for /api/v3/time_entries returs a 500 Error no matter what i try to submit. The logs show the following:
```text
App 439 output: Started POST "/api/v3/time_entries" for 91.65.29.110 at 2018-11-18 10:32:07 +0000
App 439 output: Grape rescuing from error: API::Errors::InternalError
App 439 output:
App 439 output: Original error: #<Grape::Exceptions::MethodNotAllowed: Grape::Exceptions::MethodNotAllowed>
App 439 output:
App 439 output: Stacktrace:
App 439 output:
App 439 output: /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:254:in `block in run'
App 439 output: /usr/local/bundle/gems/activesupport-5.1.6/lib/active_support/notifications.rb:168:in `instrument'
App 439 output: /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:243:in `run'
App 439 output: /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:313:in `block in build_stack'
App 439 output: /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
App 439 output: /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/base.rb:31:in `call!'
App 439 output: /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/base.rb:24:in `call'
```
The request payload looked like this and filled the same fields as found in the documentation example:
{
"spentOn": "2018-08-02",
"hours": "PT1H0M",
"comment": "",
"_links": {
"project": {
"href": "/api/v3/projects/2"
},
"workPackage": {
"href": "/api/v3/work_packages/84"
},
"activity": {
"href": "/api/v3/time_entries/activities/1"
}
}
}