Upgraded to 1.13.1 and found a problem in the management platform.



  • 1111.png


    2222.png


    [> _JSON] Clicked is invalid, showing the code content.

    url:
    http://127.0.0.1:4567/api/admin/analytics&type=hourly

    {"path":"/admin/analytics&type=hourly","title":"[[global:404.title]]"}
    

    This problem also exists with newly installed nodebb.

    what is this? It seems like something went wrong.

    How to deal with it?



  • A lot of invalid data was found in [Log]:

    2020-01-04T14:08:11.010Z [4567/3768] - error: [acp] Failed to fetch latest versionESOCKETTIMEDOUT {"code":"ESOCKETTIMEDOUT","connect":false,"stack":"Error: ESOCKETTIMEDOUT\n    at ClientRequest.<anonymous> (D:\\nodebb\\node_modules\\request\\request.js:816:19)\n    at Object.onceWrapper (events.js:273:13)\n    at ClientRequest.emit (events.js:182:13)\n    at TLSSocket.emitRequestTimeout (_http_client.js:662:40)\n    at Object.onceWrapper (events.js:273:13)\n    at TLSSocket.emit (events.js:182:13)\n    at TLSSocket.Socket._onTimeout (net.js:453:8)\n    at ontimeout (timers.js:436:11)\n    at tryOnTimeout (timers.js:300:5)\n    at listOnTimeout (timers.js:263:5)"}
    2020-01-04T14:08:13.113Z [4567/3768] - error: /api/admin/analytics
    Invalid data {"stack":"Error: Invalid data\n    at dashboardController.getAnalytics (D:\\nodebb\\src\\controllers\\admin\\dashboard.js:83:15)\n    at D:\\nodebb\\src\\routes\\helpers.js:21:11\n    at Layer.handle [as handle_request] (D:\\nodebb\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at next (D:\\nodebb\\node_modules\\express\\lib\\router\\route.js:137:13)\n    at authenticate (D:\\nodebb\\src\\middleware\\user.js:21:11)\n    at middlewareAuthenticate (D:\\nodebb\\src\\middleware\\user.js:47:3)\n    at Layer.handle [as handle_request] (D:\\nodebb\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at next (D:\\nodebb\\node_modules\\express\\lib\\router\\route.js:137:13)\n    at Route.dispatch (D:\\nodebb\\node_modules\\express\\lib\\router\\route.js:112:3)\n    at Layer.handle [as handle_request] (D:\\nodebb\\node_modules\\express\\lib\\router\\layer.js:95:5)"}
    2020-01-04T14:19:52.276Z [4567/3768] - error: /api/admin/analytics
    Invalid data {"stack":"Error: Invalid data\n    at dashboardController.getAnalytics (D:\\nodebb\\src\\controllers\\admin\\dashboard.js:83:15)\n    at D:\\nodebb\\src\\routes\\helpers.js:21:11\n    at Layer.handle [as handle_request] (D:\\nodebb\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at next (D:\\nodebb\\node_modules\\express\\lib\\router\\route.js:137:13)\n    at authenticate (D:\\nodebb\\src\\middleware\\user.js:21:11)\n    at middlewareAuthenticate (D:\\nodebb\\src\\middleware\\user.js:47:3)\n    at Layer.handle [as handle_request] (D:\\nodebb\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at next (D:\\nodebb\\node_modules\\express\\lib\\router\\route.js:137:13)\n    at Route.dispatch (D:\\nodebb\\node_modules\\express\\lib\\router\\route.js:112:3)\n    at Layer.handle [as handle_request] (D:\\nodebb\\node_modules\\express\\lib\\router\\layer.js:95:5)"}
    

  • Admin Staff

    Thanks for reporting, I will take a look into this.


  • Admin Staff



  • @baris said in Upgraded to 1.13.1 and found a problem in the management platform.:

    Fixed https://github.com/NodeBB/NodeBB/issues/8105

    Dosn't fix it for me. I still have the [> _JSON] in my dashboard but the message when clicked is different now 🙂

    {"query":{"units":"hours","until":1579190592728,"count":24},"result":{"uniquevisitors":[0,2,37,42,37,42,37,38,34,32,34,31,37,44,41,41,37,35,24,28,26,4,19,2],"pageviews":[0,4,186,123,463,179,102,137,132,1417,890,899,719,1095,439,250,173,174,143,161,110,42,99,4],"pageviews:registered":[0,3,102,50,93,103,42,0,0,0,1,0,0,38,40,32,34,99,71,55,51,40,70,3],"pageviews:bot":[0,1,51,63,336,53,52,106,122,1417,879,888,707,1056,330,200,118,49,54,92,53,2,21,1],"pageviews:guest":[0,0,33,10,34,23,8,31,10,0,10,11,12,1,69,18,21,26,18,14,6,0,8,0]}}
    

    Could you help?


Log in to reply
 

Suggested Topics

  • 4
  • 19
  • 2
  • 11
  • 7
| |