node_modules/@adonisjs/http-server/build/src/Exceptions/HttpException.js:31:23
Function.invoke
if (body !== null && typeof body === 'object') {
const error = new this(body.message || (0, helpers_1.interpolate)(message, { status }), status, code);
error.body = body;
return error;
}
const error = new this(body || (0, helpers_1.interpolate)(message, { status }), status, code);
error.body = error.message;
return error;
}
}
exports.HttpException = HttpException;
node_modules/@adonisjs/http-server/build/src/Server/RequestHandler/index.js:49:49
RequestHandler.findRoute
matchRoute.end();
/*
* Raise error when route is missing
*/
if (!route) {
throw HttpException_1.HttpException.invoke((0, helpers_1.interpolate)(exceptions_json_1.E_ROUTE_NOT_FOUND.message, { method, url }), exceptions_json_1.E_ROUTE_NOT_FOUND.status, exceptions_json_1.E_ROUTE_NOT_FOUND.code);
}
/*
* Attach `params`, `subdomains` and `route` when route is found. This
* information only exists on a given route
*/
node_modules/@adonisjs/http-server/build/src/Server/RequestHandler/index.js:65:14
RequestHandler.handle
}
/**
* Handles the request and invokes required middleware/handlers
*/
async handle(ctx) {
this.findRoute(ctx);
return this.handleRequest(ctx);
}
/**
* Computing certain methods to optimize for runtime performance
*/
node_modules/@adonisjs/http-server/build/src/Server/index.js:77:44
* Start with before hooks upfront. If they raise error
* then execute error handler.
*/
return this.hooks.executeBefore(ctx).then((shortcircuit) => {
if (!shortcircuit) {
return this.requestHandler.handle(ctx);
}
});
}
/**
* Returns the profiler row
node_modules/@adonisjs/http-server/build/src/Server/index.js:108:13
Server.handleRequest
/*
* Handle request by executing hooks, request middleware stack
* and route handler
*/
try {
await this.runBeforeHooksAndHandler(ctx);
}
catch (error) {
await this.exception.handle(error, ctx);
}
/*