Git Product home page Git Product logo

Comments (7)

lizheming avatar lizheming commented on June 12, 2024

官网是同样的部署环境,没办法复现这个问题,你提供下账号登下你后台看下吧。


The official website has the same deployment environment. There is no way to reproduce this problem. You can log in with your account and take a look at the background.

from waline.

Ares-X avatar Ares-X commented on June 12, 2024

approved类型status参数为mine的时候可以正常获取到评论
image
status参数为all到时候返回

{"errno":500,"errmsg":"Input data should be a String"}

image

from waline.

Ares-X avatar Ares-X commented on June 12, 2024

vercel后台log

�[36m[2023-12-24T14:45:23.673] [8] [DEBUG]�[39m - Post Comment Start!
�[36m[2023-12-24T14:45:23.673] [8] [DEBUG]�[39m - Post Comment initial Data: {
  link: undefined,
  mail: undefined,
  nick: undefined,
  pid: undefined,
  rid: undefined,
  ua: undefined,
  url: undefined,
  comment: undefined,
  ip: '',
  insertedAt: 2023-12-24T14:45:23.673Z,
  user_id: '639ef5a05fee9f4325f95faf'
}
�[36m[2023-12-24T14:45:23.674] [8] [DEBUG]�[39m - Comment post hooks preSave done!
�[36m[2023-12-24T14:45:24.029] [8] [DEBUG]�[39m - Comment have been added to storage.
Error: Input data should be a String
    at MarkdownIt.parse (/var/task/node_modules/markdown-it/lib/index.js:519:11)
    at MarkdownIt.render (/var/task/node_modules/markdown-it/lib/index.js:544:36)
    at /var/task/node_modules/@waline/vercel/src/service/markdown/index.js:61:43
    at formatCmt (/var/task/node_modules/@waline/vercel/src/controller/comment.js:57:21)
    at module.exports.postAction (/var/task/node_modules/@waline/vercel/src/controller/comment.js:239:23)
    at cors (/var/task/node_modules/@koa/cors/index.js:108:16)
    at /var/task/node_modules/@waline/vercel/src/middleware/version.js:5:3
    at /var/task/node_modules/@waline/vercel/src/middleware/prefix-warning.js:27:3
    at Server.<anonymous> (/var/task/___vc/__launcher/helpers-23SL6TQX.js:1:7826)
    at Server.<anonymous> (/var/task/___vc/__launcher/bridge-server-PK2WV7I3.js:5:12379)

from waline.

Ares-X avatar Ares-X commented on June 12, 2024

查看Leancloud存储数据发现多个所有字段全部为undefined的row,删除后管理后台可以正常取到数据


Checking the Leancloud storage data, we found multiple rows with all fields being undefined. After deletion, the management backend can obtain the data normally

from waline.

lizheming avatar lizheming commented on June 12, 2024

了解,那应该就是空数据导致的 Markdown 渲染失败了,应该是非正常情况,先忽略吧,谢谢反馈。


Understood, it should be the Markdown rendering failure caused by empty data. It should be an abnormal situation. Ignore it for now. Thank you for your feedback.

from waline.

Ares-X avatar Ares-X commented on June 12, 2024

image

POST /comment?lang=en

该接口并未验证用户输入合法性,POST空json数据会返回

{"errno":500,"errmsg":"Input data should be a String"}

同时在数据库插入无效数据

image


image

POST /comment?lang=en

This interface does not verify the legitimacy of user input, and POST empty json data will be returned.

{"errno":500,"errmsg":"Input data should be a String"}

Insert invalid data into the database at the same time

image

from waline.

lizheming avatar lizheming commented on June 12, 2024

评论除了评论内容之外是可以都为空的,评论内容之前只做了前台的空判断,没有在服务端做处理,有需要的话欢迎 PR。


Comments can be empty except for the comment content. Before the comment content, only the front-end empty judgment was made, and there was no processing on the server side. If necessary, PR is welcome.

from waline.

Related Issues (20)

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.