Giter VIP home page Giter VIP logo

hexo-bridge's People

Contributors

deepspaceharbor avatar dependabot-preview[bot] avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hexo-bridge's Issues

一些问题

非常好的工具!

在使用中遇到了一些问题:
1.
Screenshot_1

长时间的Loading...

运行hexo s不久后,会在后台报错:
以下是完整后台记录

$ hexo s
INFO  Validating config
INFO  Start processing
INFO  Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
INFO
===================================================================
      ______ __  __  ______  __    __  ______
     /\__  _/\ \_\ \/\  ___\/\ "-./  \/\  ___\
     \/_/\ \\ \  __ \ \  __\\ \ \-./\ \ \  __\
        \ \_\\ \_\ \_\ \_____\ \_\ \ \_\ \_____\
         \/_/ \/_/\/_/\/_____/\/_/  \/_/\/_____/

 ______  ______  _____   ______  ______ __  __   __  ______
/\  == \/\  ___\/\  __-./\  ___\/\  ___/\ \/\ "-.\ \/\  ___\
\ \  __<\ \  __\\ \ \/\ \ \  __\\ \  __\ \ \ \ \-.  \ \  __\
 \ \_\ \_\ \_____\ \____-\ \_____\ \_\  \ \_\ \_\\"\_\ \_____\
  \/_/ /_/\/_____/\/____/ \/_____/\/_/   \/_/\/_/ \/_/\/_____/

  Github: https://github.com/EvanNotFound/hexo-theme-redefine
      current version is v1.1.2,latest version is v1.1.2
===================================================================
Got error while fetching plugins list. Error: connect ETIMEDOUT 185.199.111.133:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
  errno: -4039,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '185.199.111.133',
  port: 443,
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: [Function: httpAdapter],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    validateStatus: [Function: validateStatus],
    headers: {
      Accept: 'application/json, text/plain, */*',
      'User-Agent': 'axios/0.26.1'
    },
    method: 'get',
    url: 'https://raw.githubusercontent.com/hexojs/site/master/source/_data/plugins.yml',
    data: undefined
  },
  request: <ref *1> Writable {
    _writableState: WritableState {
      objectMode: false,
      highWaterMark: 16384,
      finalCalled: false,
      needDrain: false,
      ending: false,
      ended: false,
      finished: false,
      destroyed: false,
      decodeStrings: true,
      defaultEncoding: 'utf8',
      length: 0,
      writing: false,
      corked: 0,
      sync: true,
      bufferProcessing: false,
      onwrite: [Function: bound onwrite],
      writecb: null,
      writelen: 0,
      afterWriteTickInfo: null,
      buffered: [],
      bufferedIndex: 0,
      allBuffers: true,
      allNoop: true,
      pendingcb: 0,
      constructed: true,
      prefinished: false,
      errorEmitted: false,
      emitClose: true,
      autoDestroy: true,
      errored: null,
      closed: false,
      closeEmitted: false,
      [Symbol(kOnFinished)]: []
    },
    _events: [Object: null prototype] {
      response: [Function: handleResponse],
      error: [Function: handleRequestError],
      socket: [Function: handleRequestSocket]
    },
    _eventsCount: 3,
    _maxListeners: undefined,
    _options: {
      maxRedirects: 21,
      maxBodyLength: 10485760,
      protocol: 'https:',
      path: '/hexojs/site/master/source/_data/plugins.yml',
      method: 'GET',
      headers: [Object],
      agent: undefined,
      agents: [Object],
      auth: undefined,
      hostname: 'raw.githubusercontent.com',
      port: null,
      nativeProtocols: [Object],
      pathname: '/hexojs/site/master/source/_data/plugins.yml'
    },
    _ended: true,
    _ending: true,
    _redirectCount: 0,
    _redirects: [],
    _requestBodyLength: 0,
    _requestBodyBuffers: [],
    _onNativeResponse: [Function (anonymous)],
    _currentRequest: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: false,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: false,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      strictContentLength: false,
      _contentLength: 0,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: false,
      socket: [TLSSocket],
      _header: 'GET /hexojs/site/master/source/_data/plugins.yml HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'User-Agent: axios/0.26.1\r\n' +
        'Host: raw.githubusercontent.com\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: nop],
      agent: [Agent],
      socketPath: undefined,
      method: 'GET',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      joinDuplicateHeaders: undefined,
      path: '/hexojs/site/master/source/_data/plugins.yml',
      _ended: false,
      res: null,
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'raw.githubusercontent.com',
      protocol: 'https:',
      _redirectable: [Circular *1],
      [Symbol(kCapture)]: false,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(kEndCalled)]: true,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype],
      [Symbol(errored)]: null,
      [Symbol(kUniqueHeaders)]: null
    },
    _currentUrl: 'https://raw.githubusercontent.com/hexojs/site/master/source/_data/plugins.yml',
    [Symbol(kCapture)]: false
  },
  response: undefined,
  isAxiosError: true,
  toJSON: [Function: toJSON]
}

RangeError: Maximum call stack size exceeded

Using hexo-bridge, this happens when I go to the posts page (I can view the pages, files, themes, etc just right). I don't have stats now, but there are a lot of posts, probably >1000, just in case it could be related.

Any ideas?

Screenshot 2023-04-14 at 00 05 58

RangeError: Maximum call stack size exceeded
    at String.replace (<anonymous>)
    at escapeRegExp (/<path>/web/node_modules/hexo-util/lib/escape_regexp.js:7:14)
    at slugize (/<path>/web/node_modules/hexo-util/lib/slugize.js:13:22)
    at _Document.<anonymous> (/<path>/web/node_modules/hexo/lib/models/tag.js:21:12)
    at _Document.slug (/<path>/web/node_modules/warehouse/lib/types/virtual.js:59:24)
    at JSON.stringify (<anonymous>)
    at toJson (/<path>/web/node_modules/hexo-bridge/utils.js:18:15)
    at ServerResponse.res.sendSuccess (/<path>/web/node_modules/hexo-bridge/index.js:17:13)
    at /<path>/web/node_modules/hexo-bridge/index.js:48:9
    at call (/<path>/web/node_modules/connect/index.js:239:7)
    at next (/<path>/web/node_modules/connect/index.js:183:5)
    at next (/<path>/web/node_modules/connect/index.js:161:14)
    at next (/<path>/web/node_modules/connect/index.js:161:14)
    at next (/<path>/web/node_modules/connect/index.js:161:14)
    at setupHelpers (/<path>/web/node_modules/hexo-bridge/index.js:23:3)
    at call (/<path>/web/node_modules/connect/index.js:239:7)

Every time I reload the Maximum call stack size exceeded happens in a different point in the call stack, usually some regexp or some operation with Moment.

关于新建文章。 About New Posts.

image

  • 首先,我非常喜欢您的项目,我认为这对我有很大帮助。但是我遇到了一些麻烦。

  • First of all, I really like your project and I think it will help me a lot.But I ran into some trouble.

  • 当我新建文章并且 hexo g 时总是会提示文件已经存在。

  • Whenever I create a new article and hexo g is always prompted that the file already exists.

  • 而且新建文章后 bridge 会跳转到一个错误的页面,查看hexo也发现了报错。

  • In addition, the bridge redirects to an error page after creating a new article, and checking hexo also found the error.

还更新吗?

可以提一些建议吗?

希望可以做成像文件管理器那样。 新建的 都在post下边。
目前比较乱。

Upload file failed

I have hexo & hexo-bridge installed on a VPS server, with a working domain name. Everything works fine, except file uploads.
I think it's the hard-coded url "http://localhost:4000" causing the issue.

Errors showing in Console:

index-4d2eb3b7.js:149 Upload error: Ee {message: 'Network Error', name: 'AxiosError', code: 'ERR_NETWORK', config: {…}, request: XMLHttpRequest, …}
s @ index-4d2eb3b7.js:149
await in s (async)
(anonymous) @ index-4d2eb3b7.js:149
Zm @ index-4d2eb3b7.js:40
xl @ index-4d2eb3b7.js:40
K3 @ index-4d2eb3b7.js:40
Ia @ index-4d2eb3b7.js:40
iC @ index-4d2eb3b7.js:40
va @ index-4d2eb3b7.js:38
(anonymous) @ index-4d2eb3b7.js:40
index-4d2eb3b7.js:73     POST http://localhost:4000/api/assets/upload net::ERR_CONNECTION_REFUSED
(anonymous) @ index-4d2eb3b7.js:73
xhr @ index-4d2eb3b7.js:73
rk @ index-4d2eb3b7.js:75
request @ index-4d2eb3b7.js:75
(anonymous) @ index-4d2eb3b7.js:71
s @ index-4d2eb3b7.js:149
(anonymous) @ index-4d2eb3b7.js:149
Zm @ index-4d2eb3b7.js:40
xl @ index-4d2eb3b7.js:40
K3 @ index-4d2eb3b7.js:40
Ia @ index-4d2eb3b7.js:40
iC @ index-4d2eb3b7.js:40
va @ index-4d2eb3b7.js:38
(anonymous) @ index-4d2eb3b7.js:40

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.