Content
Not able to create new project using V3 API
Added by Ramkumar RN about 5 years ago
I am not able to create new project using V3 api.
Url : http://<<My DOMAIN>>/openproject/api/v3/projects/
Content-Type : application/json
Authorization : Basic Auth ==> apikey / <<MY KEY>>
payload
{ "identifier": "new_project_identifier"
"name": "Newprojectname"
}
Getting error : {
"_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:InternalServerError",
"message": "An internal error has occured."
}
In Open Project error logs we are getting below error.
Nov 13 09:10:42 hycopen openproject-web-1.service[37580]: E, [2019-11-13T09:10:42.753203 #120295] ERROR -- : Grape rescuing from error: API::Errors::InternalError
Nov 13 09:10:42 hycopen openproject-web-1.service[37580]: Original error: #<Grape::Exceptions::MethodNotAllowed: Grape::Exceptions::MethodNotAllowed>
Nov 13 09:10:42 hycopen openproject-web-1.service[37580]: Stacktrace:
Nov 13 09:10:42 hycopen openproject-web-1.service[37580]: /opt/openproject/vendor/bundle/ruby/2.6.0/gems/grape-1.2.3/lib/grape/endpoint.rb:254:in `block in run'
Nov 13 09:10:42 hycopen openproject-web-1.service[37580]: /opt/openproject/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/notifications.rb:170:in `instrument'
Nov 13 09:10:42 hycopen openproject-web-1.service[37580]: /opt/openproject/vendor/bundle/ruby/2.6.0/gems/grape-1.2.3/lib/grape/endpoint.rb:243:in `run'
Nov 13 09:10:42 hycopen openproject-web-1.service[37580]: /opt/openproject/vendor/bundle/ruby/2.6.0/gems/grape-1.2.3/lib/grape/endpoint.rb:314:in `block in build_stack'