Get Error Details
To view the details of an application error, use the following request:
GET /sysadmin_tools/infrastructure/errors/:id.xml
GET /sysadmin_tools/infrastructure/errors/:id.json
XML Request Example
curl -i -X GET -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml '--url "http://onapp.test/sysadmin_tools/infrastructure/errors/5.xml"
JSON Request Example
curl -i -X GET -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json '--url "http://onapp.test/sysadmin_tools/infrastructure/errors/5.json"
XML Output Example
<infrastructure_error> <backtrace>/onapp/interface/lib/daemon/activity/hypervisor_stats_runner.rb:15:in `run' /onapp/interface/lib/daemon/supervisors/stats_supervisor.rb:46:in `operation' /onapp/interface/lib/core_ext/eventmachine.rb:8:in `call' /onapp/interface/lib/core_ext/eventmachine.rb:8:in `block in spawn_threadpool'</backtrace> <counter type="integer">215</counter> <created_at type="datetime">2015-10-28T13:27:26+02:00</created_at> <error_class>NoMethodError</error_class> <fingerprint>00c2afa57790ab756d637b13feff4fde2c7a7b444c9195d9144cd32decd96b19</fingerprint> <id type="integer">5</id> <message>undefined method `id' for nil:NilClass</message> <reported type="boolean">false</reported> <updated_at type="datetime">2015-11-09T14:26:00+02:00</updated_at> </infrastructure_error>
Where:
backtrace - the backtrace of the error
counter - how many times the error has occurred
created_at - the date when this record was created in database in the [YYYY][MM][DD]T[hh][mm][ss]Z format
error_class - the class of the error
fingerprint - the unique identifier of the error
id - ID of the error
message - the message that will be sent with this error
reported - whether the error has been reported or not
updated_at - the date when this record was updated in database in the [YYYY][MM][DD]T[hh][mm][ss]Z format