500

AssertionError in /list/jc

Can't find default/error from /wwwroot/tenggong/app/view (code: ERR_ASSERTION)
node_modules/egg-view/lib/view_
    let filename = this.fileMap.get(name);
    if (config.cache && filename) return filename;

    // try find it with default extension
    filename = await resolvePath([ name, name + config.defaultExtension ], config.root);
    assert(filename, `Can't find ${name} from ${config.root.join(',')}`);

    // set cache
    this.fileMap.set(name, filename);
    return filename;
  }
                
74:5
node_modules/egg-view/lib/view_:74:5
let filename = (name); if ( && filename) return filename; // try find it with default extension filename = await resolvePath([ name, name + ], ); assert(filename, `Can't find ${name} from ${(',')}`); // set cache (name, filename); return filename; }
node_modules/egg-view/lib/context_:50:22
async ContextView.[contextView#render]
} // ext -> viewEngineName -> viewEngine async [RENDER](name, locals, options = {}) { // retrieve fullpath matching name from `` const filename = await (name); = name; = ((name), '').replace(/[\/\\]$/, ''); = locals; // get the name of view engine,
app/controller/api/:121:17
async
if ( > 0) { tmp = tmpname[0].tmpname; label['classtitle'] = tmpname[0].title; label['classurl'] = '/list/' + cstr; } else { await ('default/error'); return; } } //(label)
app/middleware/:19:5
async tmeplateState
.__CV__ = ; .__COPYRIGHT__ = ; .__ADMINDIR__ = ; .__ADMINHOST__ = + + ; await next(); }; };
app/middleware/:7:5
async gzip
const isJSON = require('koa-is-json'); const zlib = require('zlib'); = options => { return async function gzip(ctx, next) { await next(); // 后续中间件执行完成后将响应体转换成 gzip let body = ; if (!body) return;
async node_modules/egg-development/app/middleware/egg_loader_:9:50
node_modules/egg-security/lib/middlewares/:7:5
async xframe
const utils = require('../utils'); = options => { return async function xframe(ctx, next) { await next(); const opts = (options, ); if ((opts, ctx)) return; // DENY,SAMEORIGIN,ALLOW-FROM
node_modules/egg-security/lib/middlewares/:7:5
async xssProtection
const utils = require('../utils'); = options => { return async function xssProtection(ctx, next) { await next(); const opts = (options, ); if ((opts, ctx)) return; ('x-xss-protection', );
node_modules/egg-security/lib/middlewares/:8:5
async nosniff
const statuses = require('statuses'); const utils = require('../utils'); = options => { return async function nosniff(ctx, next) { await next(); // ignore redirect response if ([]) return; const opts = (options, );
node_modules/egg-security/lib/middlewares/:8:5
async noopen
const utils = require('../utils'); // @see https:///b/ieinternals/archive/2009/06/30/ = options => { return async function noopen(ctx, next) { await next(); const opts = (options, ); if ((opts, ctx)) return; ('x-download-options', 'noopen');
node_modules/koa-session/:41:7
async session
return async function session(ctx, next) { const sess = ctx[CONTEXT_SESSION]; if () await (); try { await next(); } catch (err) { throw err; } finally { if () { await ();
node_modules/koa-bodyparser/:86:5
async bodyParser
onerror(err, ctx); } else { throw err; } } await next(); }; async function parseBody(ctx) { if (enableJson && ((detectJSON && detectJSON(ctx)) || (jsonTypes))) { return await (ctx, jsonOpts);
async node_modules/koa-static-cache/:53:56
node_modules/egg/app/middleware/:5:5
async notfound
'use strict'; = options => { return async function notfound(ctx, next) { await next(); if ( !== 404 || ) { return; }
node_modules/egg/app/middleware/:12:5
async meta
= options => { return async function meta(ctx, next) { if () { ('[meta] request started, host: %s, user-agent: %s', , ['user-agent']); } await next(); // total response time header ('x-readtime', () - ); // try to support Keep-Alive Header const server = ;

Request Details

URI
/list/jc
Request Method
GET
HTTP Version
Connection
close

Headers

host
x-real-ip
119.91.70.232
remote-host
119.91.70.232
x-forwarded-for
119.91.70.232
upgrade-insecure-requests
1
user-agent
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
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.7
accept-encoding
gzip, deflate
accept-language
en-US,en;q=0.9

Cookies

AppInfo

baseDir
/wwwroot/tenggong
config
{
  session: {
    maxAge: 88888888,
    key: 'asfmk235m9dfgj3224n60fgh',
    httpOnly: true,
    encrypt: true,
    renew: true,
    overwrite: true,
    signed: true,
    autoCommit: true,
    encode: [Function: encode],
    decode: [Function: decode],
    genid: <ref *1> [Function: v4] { v1: [Function: v1], v4: [Circular *1] }
  },
  security: {
    domainWhiteList: [],
    protocolWhiteList: [],
    defaultMiddleware: 'csrf,hsts,methodnoallow,noopen,nosniff,csp,xssProtection,xframe,dta',
    csrf: {
      enable: true,
      type: 'ctoken',
      ignoreJSON: false,
      useSession: false,
      cookieName: 'csrfToken',
      sessionName: 'csrfToken',
      headerName: 'x-csrf-token',
      bodyName: '_csrf',
      queryName: '_csrf',
      refererWhiteList: [],
      ignore: [Array],
      matching: [Function: pathMatch]
    },
    xframe: {
      enable: true,
      value: 'SAMEORIGIN',
      matching: [Function (anonymous)]
    },
    hsts: { enable: false, maxAge: 88888888, includeSubdomains: false },
    dta: { enable: true, matching: [Function (anonymous)] },
    methodnoallow: { enable: true, matching: [Function (anonymous)] },
    noopen: { enable: true, matching: [Function (anonymous)] },
    nosniff: { enable: true, matching: [Function (anonymous)] },
    referrerPolicy: { enable: false, value: 'no-referrer-when-downgrade' },
    xssProtection: {
      enable: true,
      value: '1; mode=block',
      matching: [Function (anonymous)]
    },
    csp: { enable: false, policy: {} },
    ssrf: { ipBlackList: null, checkAddress: null },
    _protocolWhiteListSet: Set(4) { 'http', 'https', 'file', 'data' }
  },
  helper: { shtml: {} },
  jsonp: { limit: 50, callback: [ '_callback', 'callback' ], csrf: false },
  onerror: {
    errorPageUrl: '',
    appErrorFilter: null,
    templatePath: '/wwwroot/tenggong/node_modules/egg-onerror/lib/onerror_'
  },
  i18n: {
    defaultLocale: 'en_US',
    dirs: [
      '/wwwroot/tenggong/node_modules/egg-session/config/locales',
      '/wwwroot/tenggong/node_modules/egg-security/config/locales',
      '/wwwroot/tenggong/node_modules/egg-jsonp/config/locales',
      '/wwwroot/tenggong/node_modules/egg-onerror/config/locales',
      '/wwwroot/tenggong/node_modules/egg-i18n/config/locales',
      '/wwwroot/tenggong/node_modules/egg-watcher/config/locales',
      '/wwwroot/tenggong/node_modules/egg-schedule/config/locales',
      '/wwwroot/tenggong/node_modules/egg-multipart/config/locales',
      '/wwwroot/tenggong/node_modules/egg-development/config/locales',
      '/wwwroot/tenggong/node_modules/egg-logrotator/config/locales',
      '/wwwroot/tenggong/node_modules/egg-static/config/locales',
      '/wwwroot/tenggong/node_modules/egg-view/config/locales',
      '/wwwroot/tenggong/node_modules/egg-view-arttemplate/config/locales',
      '/wwwroot/tenggong/node_modules/egg-mongoose/config/locales',
      '/wwwroot/tenggong/node_modules/egg/config/locales',
      '/wwwroot/tenggong/config/locales'
    ],
    queryField: 'locale',
    cookieField: 'locale',
    cookieDomain: '',
    cookieMaxAge: '1y',
    functionName: '__'
  },
  watcher: {
    type: 'development',
    eventSources: {
      default: '/wwwroot/tenggong/node_modules/egg-watcher/lib/event-sources/default',
      development: '/wwwroot/tenggong/node_modules/egg-watcher/lib/event-sources/development'
    }
  },
  customLogger: {
    scheduleLogger: { consoleLevel: 'NONE', file: '' }
  },
  schedule: { directory: [] },
  multipart: {
    mode: 'stream',
    autoFields: false,
    defaultCharset: 'utf8',
    fieldNameSize: 100,
    fieldSize: 102400,
    fields: 10,
    fileSize: 88888888,
    files: 10,
    fileExtensions: [],
    whitelist: null,
    tmpdir: '/tmp/egg-multipart-tmp/chcms3.8',
    cleanSchedule: { cron: '0 30 4 * * *' }
  },
  development: {
    watchDirs: [],
    ignoreDirs: [],
    fastReady: false,
    reloadOnDebug: true,
    overrideDefault: false
  },
  logrotator: {
    filesRotateByHour: null,
    hourDelimiter: '-',
    filesRotateBySize: null,
    maxFileSize: 88888888,
    maxFiles: 10,
    rotateDuration: 60000,
    maxDays: 31
  },
  static: {
    prefix: '/public/',
    dir: '/wwwroot/tenggong/app/public',
    dynamic: true,
    preload: false,
    buffer: false,
    maxFiles: 1000
  },
  view: {
    root: [ '/wwwroot/tenggong/app/view' ],
    cache: false,
    defaultExtension: '.html',
    defaultViewEngine: '',
    mapping: { '.html': 'arttemplate' }
  },
  arttemplate: {
    filename: null,
    escape: true,
    debug: false,
    bail: true,
    cache: true,
    minimize: true,
    compileDebug: false,
    root: '/wwwroot/tenggong/app/view',
    extname: '.html',
    ignore: []
  },
  mongoose: {
    url: '',
    options: {},
    plugins: [],
    loadModel: true,
    app: true,
    agent: false,
    client: {
      url: 'mongodb://tenggong:tenggong888@127.0.0.1:27017/tenggong',
      options: [Object]
    }
  },
  env: 'local',
  name: 'chcms3.8',
  keys: 'chcms3.8_8888888875481_148',
  proxy: false,
  maxProxyCount: 0,
  protocolHeaders: 'x-forwarded-proto',
  ipHeaders: 'x-forwarded-for',
  hostHeaders: '',
  pkg: {
    name: 'chcms3.8',
    version: '3.8.2',
    description: '',
    private: true,
    egg: { declarations: true },
    dependencies: {
      'await-stream-ready': '^1.0.1',
      bcryptjs: '^2.4.3',
      egg: '^2.15.1',
      'egg-mongoose': '^3.2.0',
      'egg-scripts': '^2.11.0',
      'egg-view-arttemplate': '^2.0.2',
      exceljs: '^1.15.0',
      lodash: '^4.17.15',
      md5: '^2.2.1',
      'mint-filter': '^1.1.8',
      nodemailer: '^6.3.0',
      sha1: '^1.1.1',
      'silly-datetime': '^0.1.2',
      'stream-to-array': '^2.3.0',
      'stream-wormhole': '^1.1.0',
      'string-random': '^0.1.3',
      urlencode: '^1.1.0',
      validator: '^11.1.0'
    },
    devDependencies: {
      autod: '^3.0.1',
      'autod-egg': '^1.1.0',
      'egg-bin': '^4.11.0',
      'egg-ci': '^1.11.0',
      'egg-mock': '^3.21.0',
      eslint: '^5.13.0',
      'eslint-config-egg': '^7.1.0'
    },
    engines: { node: '>=10.0.0' },
    scripts: {
      start: 'egg-scripts start --port=7001 --daemon --title=egg-manage --ignore-stderr',
      stop: 'egg-scripts stop',
      dev: 'egg-bin dev',
      debug: 'egg-bin debug',
      test: 'npm run lint -- --fix && npm run test-local',
      'test-local': 'egg-bin test',
      cov: 'egg-bin cov',
      lint: 'eslint .',
      ci: 'npm run lint && npm run cov',
      autod: 'autod'
    },
    ci: { version: '10' },
    repository: { type: 'git', url: '' },
    author: 'Hello World',
    license: 'MIT'
  },
  baseDir: '/wwwroot/tenggong',
  HOME: '/root',
  rundir: '/wwwroot/tenggong/run',
  dump: {
    ignore: Set(9) {
      'pass',
      'pwd',
      'passd',
      'passwd',
      'password',
      'keys',
      'masterKey',
      'accessKey',
      /secret/i
    }
  },
  confusedConfigurations: {
    bodyparser: 'bodyParser',
    notFound: 'notfound',
    sitefile: 'siteFile',
    middlewares: 'middleware',
    httpClient: 'httpclient'
  },
  notfound: { pageUrl: '' },
  siteFile: {
    '/': <Buffer 00 00 01 00 01 00 10 10 00 00 01 00 20 00 68 04 00 00 16 00 00 00 28 00 00 00 10 00 00 00 20 00 00 00 01 00 20 00 00 00 00 00 00 04 00 00 00 00 00 00 ... 1100 more bytes>
  },
  bodyParser: {
    enable: true,
    encoding: 'utf8',
    formLimit: '100kb',
    jsonLimit: '100kb',
    strict: true,
    queryString: {
      arrayLimit: 100,
      depth: 5,
      parameterLimit: 1000,
      allowDots: true
    },
    onerror: undefined,
    detectJSON: undefined,
    returnRawBody: true
  },
  logger: {
    dir: '/wwwroot/tenggong/logs/chcms3.8',
    encoding: 'utf8',
    env: 'local',
    level: 'INFO',
    consoleLevel: 'INFO',
    disableConsoleAfterReady: false,
    outputJSON: false,
    buffer: true,
    appLogName: 'chcms3.8',
    coreLogName: '',
    agentLogName: '',
    errorLogName: '',
    coreLogger: { consoleLevel: 'WARN' },
    allowDebugAtProd: false,
    type: 'application'
  },
  httpclient: {
    enableDNSCache: false,
    dnsCacheLookupInterval: 10000,
    dnsCacheMaxLength: 1000,
    request: { timeout: 5000 },
    httpAgent: {
      keepAlive: true,
      freeSocketTimeout: 4000,
      maxSockets: 8888888888888888,
      maxFreeSockets: 256
    },
    httpsAgent: {
      keepAlive: true,
      freeSocketTimeout: 4000,
      maxSockets: 8888888888888888,
      maxFreeSockets: 256
    }
  },
  meta: { enable: true, logging: false },
  coreMiddleware: [
    'meta',
    'siteFile',
    'notfound',
    'static',
    'bodyParser',
    'overrideMethod',
    'session',
    'securities',
    'i18n',
    'eggLoaderTrace'
  ],
  workerStartTimeout: 600000,
  serverTimeout: null,
  cluster: { listen: { path: '', port: 1018, hostname: 'localhost' } },
  clusterClient: { maxWaitTime: 60000, responseTimeout: 60000 },
  onClientError: null,
  middleware: [ 'gzip', 'tmeplateState' ],
  gzip: { threshold: 1024 },
  tmeplateState: {
    config: {
      dbUrl: 'mongodb://tenggong:tenggong888@127.0.0.1:27017/',
      dbName: 'tenggong',
      siteName: 'CHCMS管理系统',
      CMSName: 'CHCMS',
      CMSNameVersion: '3.9.0',
      JSVersion: 'v=888888881740',
      CSSVersion: 'v=888888881740',
      CopyRight: '石家庄乘航网络科技有限公司',
      AdminDir: '/ch_admin',
      UploadDir: '/public/upload/',
      UploadImageDir: '/public/upload/image/',
      UploadFileDir: '/public/upload/file/',
      UploadVideoDir: '/public/upload/video/',
      SSL: 'http://',
      Mails: [Object],
      PowerTree: [Array]
    }
  },
  dbUrl: 'mongodb://tenggong:tenggong888@127.0.0.1:27017/',
  dbName: 'tenggong',
  siteName: 'CHCMS管理系统',
  CMSName: 'CHCMS',
  CMSNameVersion: '3.9.0',
  JSVersion: 'v=888888881740',
  CSSVersion: 'v=888888881740',
  CopyRight: '石家庄乘航网络科技有限公司',
  AdminDir: '/ch_admin',
  UploadDir: '/public/upload/',
  UploadImageDir: '/public/upload/image/',
  UploadFileDir: '/public/upload/file/',
  UploadVideoDir: '/public/upload/video/',
  SSL: 'http://',
  Mails: { service: '126', user: 'xxxx@126.com', pass: 'xxxxx' },
  PowerTree: [
    { label: '内容管理', children: [Array] },
    { label: '财务管理', children: [Array] },
    { label: '用户管理', children: [Array] },
    { label: '系统设置', children: [Array] },
    { label: '其他', children: [Array] },
    { label: '标签', children: [Array] }
  ],
  coreMiddlewares: [
    'meta',
    'siteFile',
    'notfound',
    'static',
    'bodyParser',
    'overrideMethod',
    'session',
    'securities',
    'i18n',
    'eggLoaderTrace'
  ],
  appMiddlewares: [ 'gzip', 'tmeplateState' ],
  appMiddleware: [ 'gzip', 'tmeplateState' ],
  multipartParseOptions: {
    autoFields: false,
    defCharset: 'utf8',
    limits: {
      fieldNameSize: 100,
      fieldSize: 102400,
      fields: 10,
      fileSize: 88888888,
      files: 10
    },
    checkFile: [Function: checkFile]
  }
}