Advertisement
Guest User

Untitled

a guest
Aug 8th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.24 KB | None | 0 0
  1. uri = URI.parse("https://senioradvisor-admin.3scale.net/admin/api/applications/find.xml?provider_key=524e55eb6e17a2ec0fbcfa86cc0404fc&app_id=fa7c4fe0")
  2.  
  3. http = Net::HTTP.new(uri.host, uri.port)
  4. http.use_ssl = true
  5.  
  6. request = Net::HTTP::Get.new(uri.request_uri)
  7. request.content_type = 'text/xml'
  8. response = http.request(request)
  9.  
  10.  
  11. ===== Output =====
  12.  
  13.  App 170 stderr: [ 2016-08-09 00:42:13.3350 170/0x3288dcd7(Worker 1) utils.rb:85 ]: *** Exception EOFError in Rack application object (End of file reached) (process 170, thread 0x3288dcd7(Worker 1)):
  14. 2016-08-09T00:42:13.336764+00:00 app[web.1]: App 170 stderr: from org/jruby/ext/openssl/SSLSocket.java:747:in `sysclose'
  15. 2016-08-09T00:42:13.337026+00:00 app[web.1]: App 170 stderr: from /app/vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.6-java/lib/jopenssl21/openssl/buffering.rb:447:in `close'
  16. 2016-08-09T00:42:13.337180+00:00 app[web.1]: App 170 stderr: from /app/vendor/ruby-2.3.0-jruby-9.1.2.0/lib/ruby/stdlib/net/protocol.rb:90:in `close'
  17. 2016-08-09T00:42:13.337505+00:00 app[web.1]: App 170 stderr: from /app/vendor/ruby-2.3.0-jruby-9.1.2.0/lib/ruby/stdlib/net/http.rb:976:in `do_finish'
  18. 2016-08-09T00:42:13.337810+00:00 app[web.1]: App 170 stderr: from /app/vendor/ruby-2.3.0-jruby-9.1.2.0/lib/ruby/stdlib/net/http.rb:860:in `start'
  19. 2016-08-09T00:42:13.338115+00:00 app[web.1]: App 170 stderr: from /app/vendor/ruby-2.3.0-jruby-9.1.2.0/lib/ruby/stdlib/net/http.rb:1409:in `request'
  20. 2016-08-09T00:42:13.338244+00:00 app[web.1]: App 170 stderr: from /app/vendor/bundle/jruby/2.3.0/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request'
  21. 2016-08-09T00:42:13.338497+00:00 app[web.1]: App 170 stderr: from /app/vendor/bundle/jruby/2.3.0/gems/newrelic_rpm-3.7.3.199/lib/new_relic/agent/instrumentation/net.rb:27:in `block in request_with_newrelic_trace'
  22. 2016-08-09T00:42:13.339409+00:00 app[web.1]: App 170 stderr: from /app/vendor/bundle/jruby/2.3.0/gems/newrelic_rpm-3.7.3.199/lib/new_relic/agent.rb:403:in `disable_all_tracing'
  23. 2016-08-09T00:42:13.339692+00:00 app[web.1]: App 170 stderr: from /app/vendor/bundle/jruby/2.3.0/gems/newrelic_rpm-3.7.3.199/lib/new_relic/agent/instrumentation/net.rb:26:in `block in request_with_newrelic_trace'
  24. 2016-08-09T00:42:13.339825+00:00 app[web.1]:
  25. Amy β€’ 2 mins
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement