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

"Internal Server Error" when trying to set identifiers for a track #19

Open
gordielachance opened this issue Oct 8, 2020 · 0 comments

Comments

@gordielachance
Copy link

Hi, I got a Internal Server Error when I'm trying to set the identifier attribute for a track 👍

track = Playlist::Track.new(
  :artist =>      'U2',
  :title =>       'Sunday Bloody Sunday',
  :duration =>    '54321',
  :identifiers => {
                    "http://example.com/rel/1/" => "http://example.com/body/1/",
                    "http://example.com/rel/2/" => "http://example.com/body/2/"
                  }
)

It seems that it is related to the :identifier attribute, since it does work if I use :location instead.

"error": "Internal Server Error",
"exception": "#<NoMethodError: undefined method `identifiers=' for #<Playlist::Track:0x0000557337d59e40>\nDid you mean?  identifiers>",

"Framework Trace": [
{
"exception_object_id": 63840,
"id": 0,
"trace": "ruby-playlist (65154d8) lib/playlist/track.rb:68:in block in initialize'" }, { "exception_object_id": 63840, "id": 1, "trace": "ruby-playlist (65154d859585) lib/playlist/track.rb:67:in each_pair'"
},
{
"exception_object_id": 63840,
"id": 2,
"trace": "ruby-playlist (65154d8) lib/playlist/track.rb:67:in initialize'" }, { "exception_object_id": 63840, "id": 5, "trace": "actionpack (6.0.3.3) lib/action_controller/metal/basic_implicit_render.rb:6:in send_action'"
},
{
"exception_object_id": 63840,
"id": 6,
"trace": "actionpack (6.0.3.3) lib/abstract_controller/base.rb:195:in process_action'" }, { "exception_object_id": 63840, "id": 7, "trace": "actionpack (6.0.3.3) lib/action_controller/metal/rendering.rb:30:in process_action'"
},
{
"exception_object_id": 63840,
"id": 8,
"trace": "actionpack (6.0.3.3) lib/abstract_controller/callbacks.rb:42:in block in process_action'" }, { "exception_object_id": 63840, "id": 9, "trace": "activesupport (6.0.3.3) lib/active_support/callbacks.rb:101:in run_callbacks'"
},
{
"exception_object_id": 63840,
"id": 10,
"trace": "actionpack (6.0.3.3) lib/abstract_controller/callbacks.rb:41:in process_action'" }, { "exception_object_id": 63840, "id": 11, "trace": "actionpack (6.0.3.3) lib/action_controller/metal/rescue.rb:22:in process_action'"
},
{
"exception_object_id": 63840,
"id": 12,
"trace": "actionpack (6.0.3.3) lib/action_controller/metal/instrumentation.rb:33:in block in process_action'" }, { "exception_object_id": 63840, "id": 13, "trace": "activesupport (6.0.3.3) lib/active_support/notifications.rb:180:in block in instrument'"
},
{
"exception_object_id": 63840,
"id": 14,
"trace": "activesupport (6.0.3.3) lib/active_support/notifications/instrumenter.rb:24:in instrument'" }, { "exception_object_id": 63840, "id": 15, "trace": "activesupport (6.0.3.3) lib/active_support/notifications.rb:180:in instrument'"
},
{
"exception_object_id": 63840,
"id": 16,
"trace": "actionpack (6.0.3.3) lib/action_controller/metal/instrumentation.rb:32:in process_action'" }, { "exception_object_id": 63840, "id": 17, "trace": "actionpack (6.0.3.3) lib/action_controller/metal/params_wrapper.rb:245:in process_action'"
},
{
"exception_object_id": 63840,
"id": 18,
"trace": "activerecord (6.0.3.3) lib/active_record/railties/controller_runtime.rb:27:in process_action'" }, { "exception_object_id": 63840, "id": 19, "trace": "actionpack (6.0.3.3) lib/abstract_controller/base.rb:136:in process'"
},
{
"exception_object_id": 63840,
"id": 20,
"trace": "actionview (6.0.3.3) lib/action_view/rendering.rb:39:in process'" }, { "exception_object_id": 63840, "id": 21, "trace": "actionpack (6.0.3.3) lib/action_controller/metal.rb:190:in dispatch'"
},
{
"exception_object_id": 63840,
"id": 22,
"trace": "actionpack (6.0.3.3) lib/action_controller/metal.rb:254:in dispatch'" }, { "exception_object_id": 63840, "id": 23, "trace": "actionpack (6.0.3.3) lib/action_dispatch/routing/route_set.rb:50:in dispatch'"
},
{
"exception_object_id": 63840,
"id": 24,
"trace": "actionpack (6.0.3.3) lib/action_dispatch/routing/route_set.rb:33:in serve'" }, { "exception_object_id": 63840, "id": 25, "trace": "actionpack (6.0.3.3) lib/action_dispatch/journey/router.rb:49:in block in serve'"
},
{
"exception_object_id": 63840,
"id": 26,
"trace": "actionpack (6.0.3.3) lib/action_dispatch/journey/router.rb:32:in each'" }, { "exception_object_id": 63840, "id": 27, "trace": "actionpack (6.0.3.3) lib/action_dispatch/journey/router.rb:32:in serve'"
},
{
"exception_object_id": 63840,
"id": 28,
"trace": "actionpack (6.0.3.3) lib/action_dispatch/routing/route_set.rb:834:in call'" }, { "exception_object_id": 63840, "id": 29, "trace": "rack (2.2.3) lib/rack/etag.rb:27:in call'"
},
{
"exception_object_id": 63840,
"id": 30,
"trace": "rack (2.2.3) lib/rack/conditional_get.rb:40:in call'" }, { "exception_object_id": 63840, "id": 31, "trace": "rack (2.2.3) lib/rack/head.rb:12:in call'"
},
{
"exception_object_id": 63840,
"id": 32,
"trace": "activerecord (6.0.3.3) lib/active_record/migration.rb:567:in call'" }, { "exception_object_id": 63840, "id": 33, "trace": "actionpack (6.0.3.3) lib/action_dispatch/middleware/callbacks.rb:27:in block in call'"
},
{
"exception_object_id": 63840,
"id": 34,
"trace": "activesupport (6.0.3.3) lib/active_support/callbacks.rb:101:in run_callbacks'" }, { "exception_object_id": 63840, "id": 35, "trace": "actionpack (6.0.3.3) lib/action_dispatch/middleware/callbacks.rb:26:in call'"
},
{
"exception_object_id": 63840,
"id": 36,
"trace": "actionpack (6.0.3.3) lib/action_dispatch/middleware/executor.rb:14:in call'" }, { "exception_object_id": 63840, "id": 37, "trace": "actionpack (6.0.3.3) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in call'"
},
{
"exception_object_id": 63840,
"id": 38,
"trace": "actionpack (6.0.3.3) lib/action_dispatch/middleware/debug_exceptions.rb:32:in call'" }, { "exception_object_id": 63840, "id": 39, "trace": "actionpack (6.0.3.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in call'"
},
{
"exception_object_id": 63840,
"id": 40,
"trace": "railties (6.0.3.3) lib/rails/rack/logger.rb:37:in call_app'" }, { "exception_object_id": 63840, "id": 41, "trace": "railties (6.0.3.3) lib/rails/rack/logger.rb:26:in block in call'"
},
{
"exception_object_id": 63840,
"id": 42,
"trace": "activesupport (6.0.3.3) lib/active_support/tagged_logging.rb:80:in block in tagged'" }, { "exception_object_id": 63840, "id": 43, "trace": "activesupport (6.0.3.3) lib/active_support/tagged_logging.rb:28:in tagged'"
},
{
"exception_object_id": 63840,
"id": 44,
"trace": "activesupport (6.0.3.3) lib/active_support/tagged_logging.rb:80:in tagged'" }, { "exception_object_id": 63840, "id": 45, "trace": "railties (6.0.3.3) lib/rails/rack/logger.rb:26:in call'"
},
{
"exception_object_id": 63840,
"id": 46,
"trace": "actionpack (6.0.3.3) lib/action_dispatch/middleware/remote_ip.rb:81:in call'" }, { "exception_object_id": 63840, "id": 47, "trace": "actionpack (6.0.3.3) lib/action_dispatch/middleware/request_id.rb:27:in call'"
},
{
"exception_object_id": 63840,
"id": 48,
"trace": "rack (2.2.3) lib/rack/runtime.rb:22:in call'" }, { "exception_object_id": 63840, "id": 49, "trace": "activesupport (6.0.3.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in call'"
},
{
"exception_object_id": 63840,
"id": 50,
"trace": "actionpack (6.0.3.3) lib/action_dispatch/middleware/executor.rb:14:in call'" }, { "exception_object_id": 63840, "id": 51, "trace": "actionpack (6.0.3.3) lib/action_dispatch/middleware/static.rb:126:in call'"
},
{
"exception_object_id": 63840,
"id": 52,
"trace": "rack (2.2.3) lib/rack/sendfile.rb:110:in call'" }, { "exception_object_id": 63840, "id": 53, "trace": "actionpack (6.0.3.3) lib/action_dispatch/middleware/host_authorization.rb:82:in call'"
},
{
"exception_object_id": 63840,
"id": 54,
"trace": "rack-cors (1.1.1) lib/rack/cors.rb:100:in call'" }, { "exception_object_id": 63840, "id": 55, "trace": "railties (6.0.3.3) lib/rails/engine.rb:527:in call'"
},
{
"exception_object_id": 63840,
"id": 56,
"trace": "puma (4.3.6) lib/puma/configuration.rb:228:in call'" }, { "exception_object_id": 63840, "id": 57, "trace": "puma (4.3.6) lib/puma/server.rb:713:in handle_request'"
},
{
"exception_object_id": 63840,
"id": 58,
"trace": "puma (4.3.6) lib/puma/server.rb:472:in process_client'" }, { "exception_object_id": 63840, "id": 59, "trace": "puma (4.3.6) lib/puma/server.rb:328:in block in run'"
},
{
"exception_object_id": 63840,
"id": 60,
"trace": "puma (4.3.6) lib/puma/thread_pool.rb:134:in `block in spawn_thread'"
}
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant