Skip to content

Instantly share code, notes, and snippets.

@PaulGWebster
Created September 23, 2021 14:21
Show Gist options
  • Save PaulGWebster/b3e26dc1a72838359fe53459fa8e5c4f to your computer and use it in GitHub Desktop.
Save PaulGWebster/b3e26dc1a72838359fe53459fa8e5c4f to your computer and use it in GitHub Desktop.
Issue with mongodb
Caught exception in MetaCPAN::Web::Controller::Root->end "Catalyst::Action::RenderView could not find a view to forward to."
Request
do {
require Symbol;
my $a = bless({
_determined_real_method => 1,
_log => bless({ abort => undef, autoflush => 1, watch_delay => 0 }, "Log::Log4perl::Catalyst"),
_path => "",
_read_length => 0,
_read_position => 0,
_use_hash_multivalue => 0,
action => "/",
address => "192.168.1.83",
arguments => [],
base => bless(do{\(my $o = "http://192.168.1.87:5001/")}, "URI::http"),
body_parameters => {},
captures => [],
cookies => {},
data_handlers => {
"application/json" => sub { ... },
"application/x-www-form-urlencoded" => sub { ... },
},
env => {
"Catalyst.Stash.v2" => sub { ... },
"HTTP_ACCEPT" => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"HTTP_ACCEPT_ENCODING" => "gzip, deflate",
"HTTP_ACCEPT_LANGUAGE" => "en-GB,en-US;q=0.9,en;q=0.8",
"HTTP_CONNECTION" => "keep-alive",
"HTTP_HOST" => "192.168.1.87:5001",
"HTTP_UPGRADE_INSECURE_REQUESTS" => 1,
"HTTP_USER_AGENT" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.134 Safari/537.36",
"MetaCPAN::Web.request_id" => "6c11409d4202060fb9878eacdbe89fb67fd4486d",
"PATH_INFO" => "/",
"plack.original_request_method" => "GET",
"psgi.errors" => *main::STDERR,
"psgi.input" => \*HTTP::Server::PSGI::$input,
"psgi.multiprocess" => "",
"psgi.multithread" => "",
"psgi.nonblocking" => "",
"psgi.run_once" => "",
"psgi.streaming" => 1,
"psgi.url_scheme" => "http",
"psgi.version" => [1, 1],
"psgix.assets" => [
"/static/js/jquery.min.js",
"/static/js/jquery.tablesorter.js",
"/static/js/jquery.relatize_date.js",
"/static/js/jquery.qtip.min.js",
"/static/js/jquery.autocomplete.min.js",
"/static/js/mousetrap.min.js",
"/static/js/shCore.js",
"/static/js/shBrushPerl.js",
"/static/js/shBrushPlain.js",
"/static/js/shBrushYaml.js",
"/static/js/shBrushJScript.js",
"/static/js/shBrushDiff.js",
"/static/js/shBrushCpp.js",
"/static/js/shBrushCPANChanges.js",
"/static/js/cpan.js",
"/static/js/toolbar.js",
"/static/js/github.js",
"/static/js/dropdown.js",
"/static/modules/bootstrap-v3.4.1/js/dropdown.js",
"/static/modules/bootstrap-v3.4.1/js/collapse.js",
"/static/modules/bootstrap-v3.4.1/js/modal.js",
"/static/modules/bootstrap-v3.4.1/js/tooltip.js",
"/static/modules/bootstrap-v3.4.1/js/affix.js",
"/static/js/bootstrap-slidepanel.js",
"/static/js/syntaxhighlighter.js",
"/static/js/less.min.js",
"/static/css/jquery.autocomplete.css",
"/static/css/jquery.qtip.min.css",
"/static/css/shCore.css",
"/static/css/shThemeDefault.css",
"/static/css/user.css",
"/static/less/style.less",
],
"psgix.harakiri" => 1,
"psgix.input.buffered" => 1,
"psgix.io" => bless(Symbol::gensym(), "IO::Socket::INET"),
"psgix.session" => {},
"psgix.session.options" => { id => 1632406440.04984, no_store => 1 },
"QUERY_STRING" => "",
"REMOTE_ADDR" => "192.168.1.83",
"REMOTE_PORT" => 6281,
"REQUEST_METHOD" => "GET",
"REQUEST_URI" => "/",
"SCRIPT_NAME" => "",
"SERVER_NAME" => 0,
"SERVER_PORT" => 5001,
"SERVER_PROTOCOL" => "HTTP/1.1",
},
final_args => 'fix',
headers => bless({
"::std_case" => {
"cookie" => "Cookie",
"upgrade-insecure-requests" => "UPGRADE-INSECURE-REQUESTS",
},
"accept" => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept-encoding" => "gzip, deflate",
"accept-language" => "en-GB,en-US;q=0.9,en;q=0.8",
"connection" => "keep-alive",
"host" => "192.168.1.87:5001",
"upgrade-insecure-requests" => 1,
"user-agent" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.134 Safari/537.36",
}, "HTTP::Headers"),
match => "/",
method => "GET",
parameters => {},
protocol => "HTTP/1.1",
query_parameters => {},
remote_user => undef,
secure => 0,
uploads => {},
uri => bless(do{\(my $o = "http://192.168.1.87:5001/")}, "URI::http"),
}, "Moose::Meta::Class::__ANON__::SERIAL::15");
*{$a->{env}{"psgix.io"}} = {
io_socket_domain => 2,
io_socket_peername => "\2\0\30\x89\xC0\xA8\1S\0\0\0\0\0\0\0\0",
io_socket_proto => 6,
io_socket_timeout => undef,
io_socket_type => 1,
};
$a->{final_args} = $a->{arguments};
$a;
}
Response
bless({
_log => bless({ abort => undef, autoflush => 1, watch_delay => 0 }, "Log::Log4perl::Catalyst"),
_response_cb => sub { ... },
body => undef,
cookies => {},
encodable_content_type => qr/text|xml$|javascript$/,
encoding => bless({ Name => "utf-8-strict", strict_utf8 => 1 }, "Encode::utf8"),
finalized_headers => 0,
headers => bless({
"::std_case" => { "x-catalyst" => "X-Catalyst" },
"content-type" => "text/html; charset=utf-8",
"x-catalyst" => 5.90128,
}, "HTTP::Headers"),
status => 200,
}, "Moose::Meta::Class::__ANON__::SERIAL::16")
Stash
{ template => "home.tx" }
Config
do {
my $a = {
"Action::RenderView" => {
ignore_classes => [
"DBIx::Class::ResultSource::Table",
"DBIx::Class::ResultSourceHandle",
"DateTime",
],
scrubber_func => sub { ... },
},
"api" => "https://fastapi.metacpan.org",
"api_external" => "https://fastapi.metacpan.org",
"api_external_secure" => "https://fastapi.metacpan.org",
"api_secure" => "https://fastapi.metacpan.org",
"consumer_key" => "metacpan.dev",
"consumer_secret" => "ClearAirTurbulence",
"Controller::Account::Turing" => { public_key => "6LeH2MsSAAAAANwz3AA73Gw5OjCVjT6I51Ev-ior" },
"cookie_secret" => "seekrit",
"default_view" => "HTML",
"disable_component_resolution_regex_fallback" => 1,
"home" => "/metacpan-web",
"mark_unauthorized_releases" => 0,
"name" => "MetaCPAN::Web",
"Plugin::Authentication" => {
default => {
class => "+MetaCPAN::Web::Authentication::Realm",
credential => { class => "NoPassword" },
store => { class => "+MetaCPAN::Web::Authentication::Store" },
use_session => 0,
},
use_session => 0,
},
"Plugin::ConfigLoader" => {},
"Plugin::Static::Simple" => {
debug => 1,
dirs => [],
ignore_dirs => [],
ignore_extensions => ["tmpl", "tt", "tt2", "html", "xhtml"],
include_path => [
bless({
dirs => ["", "metacpan-web", "root"],
file_spec_class => undef,
volume => "",
}, "Path::Class::Dir"),
],
mime_types => {},
mime_types_obj => bless({}, "MIME::Types"),
no_logs => 1,
},
"root" => 'fix',
"setup_components" => { search_extra => [] },
"source_host" => "http://localhost:5000",
"static" => 'fix',
"View::HTML" => {
AUTO_FILTER => "html",
COMPILE_DIR => "/var/tmp/templates",
COMPILE_PERL => 0,
ENCODING => "utf8",
INCLUDE_PATH => "root/",
STAT_TTL => 1,
TAG_STYLE => "asp",
TEMPLATE_EXTENSION => ".html",
WRAPPER => "wrapper.html",
},
"View::Raw" => { WRAPPER => "" },
"web_host" => "http://localhost:5001",
};
$a->{"root"} = $a->{"Plugin::Static::Simple"}{include_path}[0];
$a->{"static"} = $a->{"Plugin::Static::Simple"};
$a;
}
MetaCPAN::Web on Catalyst 5.90128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment