eduardoboucas / staticman

💪 User-generated content for Git-powered websites
https://staticman.net
MIT License
2.42k stars 541 forks source link

Can't comment despite all the setup #356

Open shreyasbapat opened 4 years ago

shreyasbapat commented 4 years ago

I am getting : "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." on clicking submit button. I am unable to localise the issue to what the problem can be:

https://blog.einsteinpy.org/2020-05-18-GSoC-20-Brief-History/ This is the blog post.

This is the repository for enabling the comments: https://github.com/einsteinpy/blog.einsteinpy.org

Any leads will be appreciated.

iootaa commented 4 years ago

You should try to remove reCaptcha just the time to make the test

shreyasbapat commented 4 years ago

You should try to remove reCaptcha just the time to make the test

I am sorry, I did not quite understand what you meant

alexwaibel commented 4 years ago

You should try to remove reCaptcha just the time to make the test

I am sorry, I did not quite understand what you meant

It means you should try disabling reCaptcha in your staticman.yml temporarily to see if that resolves the issues you're facing.

# reCAPTCHA (OPTIONAL)
# Register your domain at https://www.google.com/recaptcha/ and choose reCAPTCHA V2
# Use your OWN siteKey and secret.
reCaptcha:
  enabled: false
VincentTam commented 4 years ago

Sorry for late reply.

  1. When showing errors, please give more technical details like the relevant part of your request body. We're looking for reproducible errors.
  2. Please show us how your error is relevant to this Node.JS app or the usage of the official public instance. When Staticman interacts with your Git Repo, this Node.JS app won't look at the blog-theme-specific config file. It's better to keep questions and discussions here independent of the blog theme chosen as much as possible, because the main goal of this app is to convert JSON (or equivalent) requests into Git PR. You might want to use an API client like Postman to test things except for ReCAPTCHA.

Here's your case.

  1. Lemme do this for everyone. Screenshot from 2020-07-24 15-17-39
  2. You're sending your request body to the former official public instance https\://api.staticman.net, which is now down.

I suppose @iootaa means the first few stages of the testing. Eventually one has to test the ReCAPTCHA functionality. Unluckily, I've written few on that since I found this Node.JS app's ReCAPTCHA v2 integration pretty easy to use. I'm struggling with C# so please look at my previous demo examples on Framagit, GitLab & GitHub. I think you might find that if you google "Staticman GitLab".