500

ReferenceError

session is not defined

app/Controllers/Http/MytonJlr_WorkshopControllerProduct.js:26:78
WorkshopProductController.page
let page_html_data = { page_title : products_to_return[0].partno, bread_crumb_primary : products_to_return[0].primary_, bread_crumb_secondary : products_to_return[0].secondary, admin_status_top_bar : await build_admin_top_bar_front_end_component(session) }; // // return view.render('MytonJLR.workshop_product_page', { // category_model: category_model
node:internal/process/task_queues:95:5
process.processTicksAndRejections
node_modules/@adonisjs/framework/src/Server/index.js:121:25
async Server._routeHandler
* * @private */ async _routeHandler (ctx, next, params) { const { method } = resolver.forDir('httpControllers').resolveFunc(params[0]) const returnValue = await method(ctx) this._safelySetResponse(ctx.response, returnValue) await next() }
app/Middleware/ConvertEmptyStringsToNull.js:13:5
async ConvertEmptyStringsToNull.handle
[key]: request.body[key] !== '' ? request.body[key] : null })) ) } await next() } } module.exports = ConvertEmptyStringsToNull
node_modules/@adonisjs/auth/src/Middleware/AuthInit.js:60:5
async AuthInit.handle
user: auth.user } }) } await next() } /** * Attempt to login the user on each request ( if scheme is session ) *
node_modules/@adonisjs/shield/src/Shield/index.js:417:5
async Shield.handle
/** * Set token on the request object */ this.setRequestCsrfToken(newCsrfToken, request) await next() } } module.exports = Shield
node_modules/@adonisjs/session/src/Session/Middleware.js:76:5
async SessionMiddleware.handle
ctx.request.flashMessages = flashMessages /** * Move the chain */ await next() /** * Commit changes back to the driver, only when in implicit * mode. Otherwise the end user will have to save them * manually.
node_modules/@adonisjs/bodyparser/src/BodyParser/index.js:242:7
async BodyParser.handle
/** * Don't bother when request does not have body */ if (!request.hasBody()) { debug('skipping body parsing, since request body is empty') await next() return } /** * Body is multipart/form-data and autoProcess is set to

Request Details

URI /workshop-product/10707
Request Method GET
HTTP Version 1.1
Connection Keep-Alive

Headers

HOST localhost:3000
ACCEPT */*
USER-AGENT claudebot
X-FORWARDED-FOR 3.237.178.126
X-FORWARDED-HOST www.myton.parts
X-FORWARDED-SERVER www.myton.parts

Cookies