0

I’m facing an Internal Server Error when I call /api/service_orders/cart/service_requests/ API using Postman to add provisioning request to cart.

I’ve a few MIQ portals with the same setup, and am not able to figure out what is causing the issue because this happens to 2 out of 5 of my MIQ portals. The API payload and config are the same. Triggering this API using service UI is fine but when I use postman with the same payload, it’s throwing this error.

/var/log/manageiq/evm.log:

Error during failsafe response: undefined method symbol' for nil:NilClass /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/http/parameters.rb:63:in parse_formatted_parameters’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/http/request.rb:366:in block in POST' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/rack-2.0.1/lib/rack/request.rb:57:in fetch’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/rack-2.0.1/lib/rack/request.rb:57:in fetch_header' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/http/request.rb:365:in POST’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/http/parameters.rb:35:in parameters' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/http/mime_negotiation.rb:63:in block in formats’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/rack-2.0.1/lib/rack/request.rb:57:in fetch' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/rack-2.0.1/lib/rack/request.rb:57:in fetch_header’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/http/mime_negotiation.rb:61:in formats' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/public_exceptions.rb:22:in call’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/show_exceptions.rb:49:in render_exception' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/show_exceptions.rb:34:in rescue in call’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in call' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/rack/logger.rb:36:in call_app’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/rack/logger.rb:26:in call' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/request_store-1.3.1/lib/request_store/middleware.rb:9:in call’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/request_id.rb:24:in call' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in call’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/rack-2.0.1/lib/rack/runtime.rb:22:in call' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in call’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/executor.rb:12:in call' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in call’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/engine.rb:522:in call' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.3.0/lib/puma/configuration.rb:224:in call’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.3.0/lib/puma/server.rb:561:in handle_request' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.3.0/lib/puma/server.rb:406:in process_client’
/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.3.0/lib/puma/server.rb:271:in block in run' /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:in block in spawn_thread’

/var/log/manageiq/production.log:

INFO – : Started POST “/api/service_orders/cart/service_requests/” for 127.0.0.1 at 2021-02-23 21:54:01 +0800
FATAL – :
FATAL – : NoMethodError (undefined method symbol' for nil:NilClass): FATAL -- : FATAL -- : actionpack (5.0.0.1) lib/action_dispatch/http/parameters.rb:63:in parse_formatted_parameters’
FATAL – : actionpack (5.0.0.1) lib/action_dispatch/http/request.rb:366:in block in POST' FATAL -- : rack (2.0.1) lib/rack/request.rb:57:in fetch’
FATAL – : rack (2.0.1) lib/rack/request.rb:57:in fetch_header' FATAL -- : actionpack (5.0.0.1) lib/action_dispatch/http/request.rb:365:in POST’
FATAL – : actionpack (5.0.0.1) lib/action_dispatch/http/parameters.rb:35:in parameters' FATAL -- : actionpack (5.0.0.1) lib/action_dispatch/http/filter_parameters.rb:41:in filtered_parameters’
FATAL – : actionpack (5.0.0.1) lib/action_controller/metal/instrumentation.rb:21:in process_action' FATAL -- : actionpack (5.0.0.1) lib/action_controller/metal/params_wrapper.rb:248:in process_action’
FATAL – : activerecord (5.0.0.1) lib/active_record/railties/controller_runtime.rb:18:in process_action' FATAL -- : actionpack (5.0.0.1) lib/abstract_controller/base.rb:126:in process’
FATAL – : actionview (5.0.0.1) lib/action_view/rendering.rb:30:in process' FATAL -- : actionpack (5.0.0.1) lib/action_controller/metal.rb:190:in dispatch’
FATAL – : actionpack (5.0.0.1) lib/action_controller/metal.rb:262:in dispatch' FATAL -- : actionpack (5.0.0.1) lib/action_dispatch/routing/route_set.rb:50:in dispatch’
FATAL – : actionpack (5.0.0.1) lib/action_dispatch/routing/route_set.rb:32:in serve' FATAL -- : actionpack (5.0.0.1) lib/action_dispatch/journey/router.rb:39:in block in serve’
FATAL – : actionpack (5.0.0.1) lib/action_dispatch/journey/router.rb:26:in each' FATAL -- : actionpack (5.0.0.1) lib/action_dispatch/journey/router.rb:26:in serve’
FATAL – : actionpack (5.0.0.1) lib/action_dispatch/routing/route_set.rb:725:in call' FATAL -- : secure_headers (3.0.3) lib/secure_headers/middleware.rb:10:in call’
FATAL – : rack (2.0.1) lib/rack/etag.rb:25:in call' FATAL -- : rack (2.0.1) lib/rack/conditional_get.rb:38:in call’
FATAL – : rack (2.0.1) lib/rack/head.rb:12:in call' FATAL -- : rack (2.0.1) lib/rack/session/abstract/id.rb:222:in context’
FATAL – : rack (2.0.1) lib/rack/session/abstract/id.rb:216:in call' FATAL -- : actionpack (5.0.0.1) lib/action_dispatch/middleware/cookies.rb:613:in call’
FATAL – : actionpack (5.0.0.1) lib/action_dispatch/middleware/callbacks.rb:38:in block in call' FATAL -- : activesupport (5.0.0.1) lib/active_support/callbacks.rb:97:in run_callbacks’
FATAL – : activesupport (5.0.0.1) lib/active_support/callbacks.rb:750:in _run_call_callbacks' FATAL -- : activesupport (5.0.0.1) lib/active_support/callbacks.rb:90:in run_callbacks’
FATAL – : actionpack (5.0.0.1) lib/action_dispatch/middleware/callbacks.rb:36:in `call’
…
FATAL – : puma (3.3.0) lib/puma/configuration.rb:224:in call' FATAL -- : puma (3.3.0) lib/puma/server.rb:561:in handle_request’
FATAL – : puma (3.3.0) lib/puma/server.rb:406:in process_client' FATAL -- : puma (3.3.0) lib/puma/server.rb:271:in block in run’
FATAL – : puma (3.3.0) lib/puma/thread_pool.rb:111:in `block in spawn_thread’

Anyone has any clues on what might be causing this?

kaiilim
  • 448
  • 6
  • 19

0 Answers0