Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Rex Huang
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 22
    • Best 3
    • Groups 1

    Rex Huang

    @Rex Huang

    Gamers

    4
    Reputation
    662
    Profile views
    22
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Rex Huang Follow
    Gamers

    Best posts made by Rex Huang

    • voting not working

      I want to vote a post in my nodebb, but nothing happen, no error log.
      how can I debug?

      posted in NodeBB Development
      Rex Huang
      Rex Huang
    • error handling is wrong in translator.js

      error log:
      20/5 08:00 [179] - error: Could not parse email.json, syntax error? Skipping...
      20/5 08:00 [179] - error: Error: Callback was already called.
      at /opt/nodebb/node_modules/async/lib/async.js:30:31
      at /opt/nodebb/node_modules/async/lib/async.js:251:21
      at /opt/nodebb/src/emailer.js:45:6
      at /opt/nodebb/public/src/modules/translator.js:160:6
      at /opt/nodebb/public/src/modules/translator.js:180:4
      at /opt/nodebb/public/src/modules/translator.js:226:6
      at /opt/nodebb/public/src/modules/translator.js:289:5

      posted in Technical Support
      Rex Huang
      Rex Huang
    • RE: nodebb crash when read chat message

      problem solved with the latest fix, thanks~😄

      posted in Technical Support
      Rex Huang
      Rex Huang

    Latest posts made by Rex Huang

    • RE: voting not working

      The code is in src/socket.io/posts.js, but I can't find the topic_id and app.currentRoom you mention.

      posted in NodeBB Development
      Rex Huang
      Rex Huang
    • WebSocket connection error

      I got this error in browser client, don't know what it will take affect and how to solve?

      WebSocket connection to 'ws://<myhost>/socket.io/?EIO=3&transport=websocket&sid=wW5Z4UKR9a_ZHKHkAAAF' failed: Error during WebSocket handshake: Unexpected response code: 400
      

      which port it's using, I just open the port 4567 in firewall.

      posted in NodeBB Development
      Rex Huang
      Rex Huang
    • RE: voting not working

      temp solution:

      -- 	if(!data || !data.pid || !data.room_id) {
      ++ if(!data || !data.pid) {
      posted in NodeBB Development
      Rex Huang
      Rex Huang
    • RE: voting not working

      the debug output as below:

      4/6 03:55 [387] - info: command=`"upvote"
      4/6 03:55 [387] - info: eventName=`"voted"
      4/6 03:55 [387] - info: notification=`"notifications:upvoted_your_post_in"
      4/6 03:55 [387] - info: data=`{"pid":"85","room_id":""}
      4/6 03:55 [387] - error: favouriteCommand invalid-data
      

      Does anyone have idea what's going wrong?

      posted in NodeBB Development
      Rex Huang
      Rex Huang
    • RE: voting not working

      I found the error is come from favouriteCommand, and added some debug output:

          function favouriteCommand(socket, command, eventName, notification, data, callback) {
          winston.info('command=`' + JSON.stringify(command) );
          winston.info('eventName=`' + JSON.stringify(eventName) );
          winston.info('notification=`' + JSON.stringify(notification) );
          winston.info('data=`' + JSON.stringify(data) );
      
              if(!data || !data.pid || !data.room_id) {
          winston.error('favouriteCommand invalid-data');
                  return callback(new Error('[[error:invalid-data]]'));
              }
      posted in NodeBB Development
      Rex Huang
      Rex Huang
    • RE: voting not working

      I had changed to nodebb-theme-persona, it has the same problem.

      posted in NodeBB Development
      Rex Huang
      Rex Huang
    • RE: voting not working
      1. CentOS release 6.6 (Final)

      2. #git rev-parse HEAD
        d9af2242a7c7fc92318a83bd46e4f849094960f2

      3. I am not using nodebb-theme-persona, but nodebb-theme-lavender.

      4. error at client-side
        "Error
        Invalid Data"

      posted in NodeBB Development
      Rex Huang
      Rex Huang
    • RE: nodebb-plugin-emailer-local can not get config value

      @Mega Thanks Mega!
      I know this can work, I expect the formal release for this.😏

      posted in NodeBB Plugins
      Rex Huang
      Rex Huang
    • nodebb-plugin-emailer-local can not get config value

      nodebb-plugin-emailer-local can not get config value from plugin settings.
      I just hard code and make it works.
      BTW, secureConnection setting is useful, when using default sendmail service in Linux.

      var transportOptions = {
      secureConnection: false,
      //        host: Meta.config['emailer:local:host'],
      //        port: Meta.config['emailer:local:port']
          host: "10.175.191.88",
          port: 25
      };
      posted in NodeBB Plugins
      Rex Huang
      Rex Huang
    • voting not working

      I want to vote a post in my nodebb, but nothing happen, no error log.
      how can I debug?

      posted in NodeBB Development
      Rex Huang
      Rex Huang