{"action":"created","issue":{"url":"https://api.github.com/repos/tyldum/mojolicious-plugin-prometheus/issues/6","repository_url":"https://api.github.com/repos/tyldum/mojolicious-plugin-prometheus","labels_url":"https://api.github.com/repos/tyldum/mojolicious-plugin-prometheus/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/tyldum/mojolicious-plugin-prometheus/issues/6/comments","events_url":"https://api.github.com/repos/tyldum/mojolicious-plugin-prometheus/issues/6/events","html_url":"https://github.com/tyldum/mojolicious-plugin-prometheus/issues/6","id":285683993,"number":6,"title":"Possible bug in after_dispatch hook","user":{"login":"christopherraa","id":924763,"avatar_url":"https://avatars2.githubusercontent.com/u/924763?v=4","gravatar_id":"","url":"https://api.github.com/users/christopherraa","html_url":"https://github.com/christopherraa","followers_url":"https://api.github.com/users/christopherraa/followers","following_url":"https://api.github.com/users/christopherraa/following{/other_user}","gists_url":"https://api.github.com/users/christopherraa/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherraa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherraa/subscriptions","organizations_url":"https://api.github.com/users/christopherraa/orgs","repos_url":"https://api.github.com/users/christopherraa/repos","events_url":"https://api.github.com/users/christopherraa/events{/privacy}","received_events_url":"https://api.github.com/users/christopherraa/received_events","type":"User","site_admin":false},"labels":[{"id":794866294,"url":"https://api.github.com/repos/tyldum/mojolicious-plugin-prometheus/labels/kind/more-info-needed","name":"kind/more-info-needed","color":"f4b87f","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-03T13:15:44Z","updated_at":"2018-02-15T19:58:27Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The after_dispatch hook runs `$c->res->content->asset->size` when logging response size. However, if the response is HTTP multipart then `asset()` does not exist. It is only `Mojo::Content::Single` that has `->asset()`. The method `->is_multipart()` does however exist on `Mojo::Content` so checking for this is possible."},"comment":{"url":"https://api.github.com/repos/tyldum/mojolicious-plugin-prometheus/issues/comments/366043763","html_url":"https://github.com/tyldum/mojolicious-plugin-prometheus/issues/6#issuecomment-366043763","issue_url":"https://api.github.com/repos/tyldum/mojolicious-plugin-prometheus/issues/6","id":366043763,"user":{"login":"eforbus","id":5427038,"avatar_url":"https://avatars3.githubusercontent.com/u/5427038?v=4","gravatar_id":"","url":"https://api.github.com/users/eforbus","html_url":"https://github.com/eforbus","followers_url":"https://api.github.com/users/eforbus/followers","following_url":"https://api.github.com/users/eforbus/following{/other_user}","gists_url":"https://api.github.com/users/eforbus/gists{/gist_id}","starred_url":"https://api.github.com/users/eforbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eforbus/subscriptions","organizations_url":"https://api.github.com/users/eforbus/orgs","repos_url":"https://api.github.com/users/eforbus/repos","events_url":"https://api.github.com/users/eforbus/events{/privacy}","received_events_url":"https://api.github.com/users/eforbus/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T19:58:27Z","updated_at":"2018-02-15T19:58:27Z","author_association":"NONE","body":"+1. This happens for me as well..\r\n\r\nCan't locate object method \"asset\" via package \"Mojo::Content::MultiPart\" at /perls/perl-5.20.1/lib/site_perl/5.20.1/Mojolicious/Plugin/Prometheus.pm line 84."}}
{"actor":{"display_login":"eforbus"}}