Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
I comment on an answer on my question, and get this error: "New users can only comment on their own posts and on answers to them"
I'm the author of this question: What is the advantage of creating instances from a method rather than constructor? A user provides an answer and I want to open a comment thread. I get this response when submitting it:
{
"status": "failed",
"message": "New users can only comment on their own posts and on answers to them."
}
Isn't that I'm doing exactly what it says?
Here is the content of the comment:
Title: When is overloaded function good to use? Is it only error-prone for authors, not users?
Body: If overloaded functions tends to be error-prone in itself, then when is it be good to use? In small scripts I guess? Is the whole argument boils down to it's not worth for the authors to catch all possible errors when using overloaded constructors? Because I'm unable to imagine how users can have trouble with it
1 answer
Raised on Codidact Meta
Thanks for raising this. It turns out this affects other Codidact Communities, so it's not specific to Software Development Codidact. There's a post on the main Meta community: Incorrect raw JSON failure message on posting a comment.
I've mentioned your report there to highlight that it is affecting more people.
Workaround
Although the error message suggests failure, the comment does save successfully. This is misleading and needs to be fixed, but in the meantime you will still be able to add comments. You just won't be able to see that they succeeded until you revisit the page (by pressing back and then refresh, or by visiting the post in a different tab).
If you follow the link in your Meta question, you will see that the answer has 3 comment threads from you (presumably due to you understandably retrying when you were told that your attempt to add a comment had failed). If you open one of those threads and click on "View the whole thread", you'll have the option to delete the comment, which will then automatically delete the empty thread, allowing you to remove any duplicate comment threads that you don't want.
0 comment threads