Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't raise error when API Render ID is invalid #1278

Closed
donrestarone opened this issue Dec 6, 2022 · 0 comments
Closed

don't raise error when API Render ID is invalid #1278

donrestarone opened this issue Dec 6, 2022 · 0 comments
Assignees
Labels
bug Something isn't working high priority

Comments

@donrestarone
Copy link
Contributor

An ActionView::Template::Error occurred in content#show:

  Couldn't find ApiResource without an ID
  app/helpers/content_helper.rb:58:in `render_api_namespace_resource'


-------------------------------
Request:
-------------------------------

  * URL        : https://nikean.org/story-details
  * HTTP Method: GET
  * IP address : 169.231.47.12
  * Parameters : {"controller"=>"comfy/cms/content", "action"=>"show", "cms_path"=>"story-details"}
  * Timestamp  : 2022-12-05 23:38:46 UTC
  * Server : ip-172-31-14-250
    * Rails root : /var/www/violet/releases/20221204180118
  * Process: 995476

-------------------------------
Session:
-------------------------------

  * session id: [FILTERED]
  * data: {"session_id"=>"8bf677d3867f8c78af1404cf6ebc8b18",
    * action_controller.instance                              : #<Comfy::Cms::ContentController:0x00007f4a11a1dd50>
    * action_dispatch.authenticated_encrypted_cookie_salt     : [FILTERED]
    * action_dispatch.backtrace_cleaner                       : #<Rails::BacktraceCleaner:0x0000560a2a88bd70>
    * action_dispatch.content_security_policy                 :
    * action_dispatch.content_security_policy_nonce_directives:
    * action_dispatch.content_security_policy_nonce_generator :
    * action_dispatch.content_security_policy_report_only     : false
    * action_dispatch.cookies                                 : #<ActionDispatch::Cookies::CookieJar:0x00007f4a11bd3460>
    * action_dispatch.cookies_digest                          :
    * action_dispatch.cookies_rotations                       : #<ActiveSupport::Messages::RotationConfiguration:0x0000560a27275790>
    * action_dispatch.cookies_same_site_protection            : #<Proc:0x0000560a2c178e78@/var/www/violet/shared/bundle/ruby/2.6.0/gems/railties-6.1.5/lib/rails/application.rb:636>
    * action_dispatch.cookies_serializer                      : json
    * action_dispatch.encrypted_cookie_cipher                 : [FILTERED]
    * action_dispatch.encrypted_cookie_salt                   : [FILTERED]
    * action_dispatch.encrypted_signed_cookie_salt            : [FILTERED]
    * action_dispatch.http_auth_salt                          : [FILTERED]
    * action_dispatch.key_generator                           : #<ActiveSupport::CachingKeyGenerator:0x0000560a2a71c728>
    * action_dispatch.logger                                  : #<ActiveSupport::Logger:0x0000560a2b13fdb8>
    * action_dispatch.parameter_filter                        : [:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn]
    * action_dispatch.permissions_policy                      :
    * action_dispatch.redirect_filter                         : []
    * action_dispatch.remote_ip                               : 169.231.47.12
    * action_dispatch.request.accepts                         : [#<Mime::Type:0x00007f4a11a22be8 @synonyms=[], @symbol=nil, @string="*/*", @hash=1700674398655326320>]
    * action_dispatch.request.content_type                    :
    * action_dispatch.request.formats                         : [#<Mime::Type:0x00007f4a11a22be8 @synonyms=[], @symbol=nil, @string="*/*", @hash=1700674398655326320>]
    * action_dispatch.request.parameters                      : {"controller"=>"comfy/cms/content", "action"=>"show", "cms_path"=>"story-details"}
    * action_dispatch.request.path_parameters                 : {:controller=>"comfy/cms/content", :action=>"show", :cms_path=>"story-details"}
    * action_dispatch.request.query_parameters                : {}
    * action_dispatch.request.request_parameters              : {}
    * action_dispatch.request.unsigned_session_cookie         : {"session_id"=>"8bf677d3867f8c78af1404cf6ebc8b18"}
    * action_dispatch.request_id                              : 5f40fb98-ac62-4651-ae68-c0089de8003c
    * action_dispatch.routes                                  : #<ActionDispatch::Routing::RouteSet:0x0000560a2be6f858>
    * action_dispatch.secret_key_base                         : [FILTERED]
    * action_dispatch.show_detailed_exceptions                : false
    * action_dispatch.show_exceptions                         : true
    * action_dispatch.signed_cookie_digest                    :
    * action_dispatch.signed_cookie_salt                      : [FILTERED]
    * action_dispatch.use_authenticated_cookie_encryption     : [FILTERED]
    * action_dispatch.use_cookies_with_metadata               : true
    * exception_notifier.exception_data                       : {:current_user=>nil, :current_visit=>nil}
    * puma.config                                             : #<Puma::Configuration:0x0000560a267571d8>
    * puma.request_body_wait                                  : 0
    * puma.socket                                             : #<TCPSocket:0x00007f4a112fb130>
    * rack.after_reply                                        : []
    * rack.cors                                               : #<Rack::Cors::Result:0x00007f4a112fa550>
    * rack.errors                                             : #<IO:0x0000560a2587c0c8>
    * rack.hijack                                             : #<Puma::Client:0x00007f4a112fb108>
    * rack.hijack?                                            : true
    * rack.input                                              : #<Puma::NullIO:0x0000560a263dd688>
    * rack.multiprocess                                       : false
    * rack.multithread                                        : true
    * rack.request.cookie_hash                                : {}
    * rack.request.query_hash                                 : {}
    * rack.request.query_string                               :
    * rack.run_once                                           : false
    * rack.session                                            : #<ActionDispatch::Request::Session:0x00007f4a112b2408>
    * rack.session.options                                    : #<ActionDispatch::Request::Session::Options:0x00007f4a112b2340>
    * rack.tempfiles                                          : []
    * rack.url_scheme                                         : https
    * rack.version                                            : [1, 6]
    * warden                                                  : Warden::Proxy:69978046173400 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:two_factor_authenticatable, :two_factor_authenticatable, :rememberable]}, :intercept_401=>false, :failure_app=>RSolutionsFailureApp}



-------------------------------
Backtrace:
-------------------------------

  app/helpers/content_helper.rb:58:in `render_api_namespace_resource'

-------------------------------
Data:
-------------------------------

  * data: {:current_user=>nil, :current_visit=>nil}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority
Projects
None yet
Development

No branches or pull requests

2 participants