Created
March 4, 2014 04:21
-
-
Save jasonm/9340239 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(master) ~/dev/pgpitter $ curl -i -d@data localhost:7000/statuses -H "Content-Type: application/json" | |
HTTP/1.1 500 Internal Server Error | |
Date: Tue, 04 Mar 2014 04:21:00 GMT | |
Status: 500 Internal Server Error | |
Connection: close | |
Content-Type: text/plain; charset=utf-8 | |
X-Request-Id: 2b7084b6-5eed-48c9-82dd-110f580a5c54 | |
X-Runtime: 0.023212 | |
Transfer-Encoding: chunked | |
GPGME::Error at /statuses | |
========================= | |
> System error w/o errno | |
app/models/status.rb, line 18 | |
----------------------------- | |
``` ruby | |
13 false | |
14 end | |
15 | |
16 def verify | |
17 sig = nil | |
> 18 data = crypto.verify(signed_body){ | sig_ | sig = sig_ } | |
19 [data.read, sig.key] | |
20 end | |
21 | |
22 def crypto | |
23 GPGME::Crypto.new | |
``` | |
App backtrace | |
------------- | |
- app/models/status.rb:18:in `verify' | |
- app/models/status.rb:9:in `set_keyid' | |
- app/controllers/statuses_controller.rb:9:in `create' | |
Full backtrace | |
-------------- | |
- gpgme (2.0.2) lib/gpgme/ctx.rb:43:in `new' | |
- gpgme (2.0.2) lib/gpgme/crypto.rb:311:in `verify' | |
- app/models/status.rb:18:in `verify' | |
- app/models/status.rb:9:in `set_keyid' | |
- activesupport (4.0.2) lib/active_support/callbacks.rb:377:in `_run__4304215362812994052__create__callbacks' | |
- activesupport (4.0.2) lib/active_support/callbacks.rb:80:in `run_callbacks' | |
- activerecord (4.0.2) lib/active_record/callbacks.rb:306:in `create_record' | |
- activerecord (4.0.2) lib/active_record/timestamp.rb:57:in `create_record' | |
- activerecord (4.0.2) lib/active_record/persistence.rb:477:in `create_or_update' | |
- activerecord (4.0.2) lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
- activesupport (4.0.2) lib/active_support/callbacks.rb:383:in `_run__4304215362812994052__save__callbacks' | |
- activesupport (4.0.2) lib/active_support/callbacks.rb:80:in `run_callbacks' | |
- activerecord (4.0.2) lib/active_record/callbacks.rb:302:in `create_or_update' | |
- activerecord (4.0.2) lib/active_record/persistence.rb:106:in `save' | |
- activerecord (4.0.2) lib/active_record/validations.rb:51:in `save' | |
- activerecord (4.0.2) lib/active_record/attribute_methods/dirty.rb:32:in `save' | |
- activerecord (4.0.2) lib/active_record/transactions.rb:270:in `block (2 levels) in save' | |
- activerecord (4.0.2) lib/active_record/transactions.rb:326:in `block in with_transaction_returning_status' | |
- activerecord (4.0.2) lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `block in transaction' | |
- activerecord (4.0.2) lib/active_record/connection_adapters/abstract/database_statements.rb:210:in `within_new_transaction' | |
- activerecord (4.0.2) lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `transaction' | |
- activerecord (4.0.2) lib/active_record/transactions.rb:209:in `transaction' | |
- activerecord (4.0.2) lib/active_record/transactions.rb:323:in `with_transaction_returning_status' | |
- activerecord (4.0.2) lib/active_record/transactions.rb:270:in `block in save' | |
- activerecord (4.0.2) lib/active_record/transactions.rb:281:in `rollback_active_record_state!' | |
- activerecord (4.0.2) lib/active_record/transactions.rb:269:in `save' | |
- app/controllers/statuses_controller.rb:9:in `create' | |
- actionpack (4.0.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action' | |
- actionpack (4.0.2) lib/abstract_controller/base.rb:189:in `process_action' | |
- actionpack (4.0.2) lib/action_controller/metal/rendering.rb:10:in `process_action' | |
- actionpack (4.0.2) lib/abstract_controller/callbacks.rb:18:in `block in process_action' | |
- activesupport (4.0.2) lib/active_support/callbacks.rb:373:in `_run__2573187434213529284__process_action__callbacks' | |
- activesupport (4.0.2) lib/active_support/callbacks.rb:80:in `run_callbacks' | |
- actionpack (4.0.2) lib/abstract_controller/callbacks.rb:17:in `process_action' | |
- actionpack (4.0.2) lib/action_controller/metal/rescue.rb:29:in `process_action' | |
- actionpack (4.0.2) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' | |
- activesupport (4.0.2) lib/active_support/notifications.rb:159:in `block in instrument' | |
- activesupport (4.0.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
- activesupport (4.0.2) lib/active_support/notifications.rb:159:in `instrument' | |
- actionpack (4.0.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' | |
- actionpack (4.0.2) lib/action_controller/metal/params_wrapper.rb:245:in `process_action' | |
- activerecord (4.0.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' | |
- actionpack (4.0.2) lib/abstract_controller/base.rb:136:in `process' | |
- actionpack (4.0.2) lib/abstract_controller/rendering.rb:44:in `process' | |
- actionpack (4.0.2) lib/action_controller/metal.rb:195:in `dispatch' | |
- actionpack (4.0.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' | |
- actionpack (4.0.2) lib/action_controller/metal.rb:231:in `block in action' | |
- actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:80:in `dispatch' | |
- actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:48:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/journey/router.rb:71:in `block in call' | |
- actionpack (4.0.2) lib/action_dispatch/journey/router.rb:59:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:680:in `call' | |
- rack (1.5.2) lib/rack/etag.rb:23:in `call' | |
- rack (1.5.2) lib/rack/conditionalget.rb:35:in `call' | |
- rack (1.5.2) lib/rack/head.rb:11:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/middleware/flash.rb:241:in `call' | |
- rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' | |
- rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/middleware/cookies.rb:486:in `call' | |
- activerecord (4.0.2) lib/active_record/query_cache.rb:36:in `call' | |
- activerecord (4.0.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call' | |
- activerecord (4.0.2) lib/active_record/migration.rb:369:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' | |
- activesupport (4.0.2) lib/active_support/callbacks.rb:373:in `_run__203209770279784340__call__callbacks' | |
- activesupport (4.0.2) lib/active_support/callbacks.rb:80:in `run_callbacks' | |
- actionpack (4.0.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/middleware/reloader.rb:64:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' | |
- airbrake (3.1.15) lib/airbrake/rails/middleware.rb:13:in `call' | |
- better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call' | |
- better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call' | |
- better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' | |
- railties (4.0.2) lib/rails/rack/logger.rb:38:in `call_app' | |
- railties (4.0.2) lib/rails/rack/logger.rb:20:in `block in call' | |
- activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `block in tagged' | |
- activesupport (4.0.2) lib/active_support/tagged_logging.rb:25:in `tagged' | |
- activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `tagged' | |
- railties (4.0.2) lib/rails/rack/logger.rb:20:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/middleware/request_id.rb:21:in `call' | |
- rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' | |
- rack (1.5.2) lib/rack/runtime.rb:17:in `call' | |
- activesupport (4.0.2) lib/active_support/cache/strategy/local_cache.rb:83:in `call' | |
- rack (1.5.2) lib/rack/lock.rb:17:in `call' | |
- actionpack (4.0.2) lib/action_dispatch/middleware/static.rb:64:in `call' | |
- rack (1.5.2) lib/rack/sendfile.rb:112:in `call' | |
- airbrake (3.1.15) lib/airbrake/user_informer.rb:16:in `_call' | |
- airbrake (3.1.15) lib/airbrake/user_informer.rb:12:in `call' | |
- railties (4.0.2) lib/rails/engine.rb:511:in `call' | |
- railties (4.0.2) lib/rails/application.rb:97:in `call' | |
- rack (1.5.2) lib/rack/lint.rb:49:in `_call' | |
- rack (1.5.2) lib/rack/lint.rb:37:in `call' | |
- rack (1.5.2) lib/rack/showexceptions.rb:24:in `call' | |
- rack (1.5.2) lib/rack/commonlogger.rb:33:in `call' | |
- rack (1.5.2) lib/rack/chunked.rb:43:in `call' | |
- rack (1.5.2) lib/rack/content_length.rb:14:in `call' | |
- unicorn (4.8.2) lib/unicorn/http_server.rb:572:in `process_client' | |
- unicorn (4.8.2) lib/unicorn/http_server.rb:666:in `worker_loop' | |
- unicorn (4.8.2) lib/unicorn/http_server.rb:521:in `spawn_missing_workers' | |
- unicorn (4.8.2) lib/unicorn/http_server.rb:140:in `start' | |
- unicorn (4.8.2) bin/unicorn:126:in `<top (required)>' | |
- () Users/jason/.rbenv/versions/2.0.0-p247/gemsets/global/bin/unicorn:23:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment