-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 404 on Heroku Instance when posting comments. #311
Comments
Can you post
You may find such info in the any modern web browsers's Web Developer Tools → network. Alternatively, an API client like Postman would show you the necessary info. You can also check out my list of Staticman errors to know more about the causes of various Staticman errors. |
Ok see below.. You can also try it on my article here. I was using your staticman3/staticmanlab server earlier on this blog and just changed the form url. I have not included or touched any recaptcha requirement ever since I have started working with staticman as to make things simple. |
I have updated my Never changed |
By saying "the API server's response in JSON", I mean sth like this. {
"JSON": {
"success": false,
"rawError": {
"message": "{\"message\":\"Not Found\",\"documentation_url\":\"https:\/\/developer.github.com\/v3\/git\/refs\/#create-a-reference\"}",
"statusCode": 404
},
"errorCode": "GITHUB_CREATING_PR"
},
"Response payload": {
"EDITOR_CONFIG": {
"text": "{\"success\":false,\"rawError\":{\"message\":\"{\\\"message\\\":\\\"Not Found\\\",\\\"documentation_url\\\":\\\"https:\/\/developer.github.com\/v3\/git\/refs\/#create-a-reference\\\"}\",\"statusCode\":404},\"errorCode\":\"GITHUB_CREATING_PR\"}",
"mode": "application\/json"
}
}
} Plz consider providing a clearer screenshot by saving in PNG instead of JPG. |
Ok got it, so it's a 404 error and we're getting the same. Here's is my full form action Url btw https://staticmanx.herokuapp.com/v3/entry/github/wini3d/wini3d.github.io/master/comments |
@VincentTam I did a fresh install with your deploy branch to this new staticmanx heroku app. Can you check out my staticman.yml and form if there's a problem there? staticman.yml |
Seems like this is relevant: #299 (comment). I dunno whether my merging of #231 VincentTam@f9675f9 caused the error. It's sth that I did almost a year ago. Excuse me I didn't remember that well. It seems better to pick the commit before that for branching. I'll check whether #231 is the culprit when I've got the time and motivation to do so. Always fun testing and trying. Remarks: Things might change on GitHub's side over time, as written in #217 (comment). |
Thanks @VincentTam , can you please link your recommended commit repo and branch directly? Sorry, getting confused with all these issue numbers. Edit: I would assume this one with title 'Clean Up'. Is this ok? |
I'm still getting errors with the before #231 commit. :/ @VincentTam Would you mind just cloning and sharing a copy of your heroku staticman3 instance as this would be easier and since you don't recall the one that works with heroku? |
Finally I got it working! =) Somehow, I had to give full access token (checked all) which I know is not recommended. I only checked Edit: found an updated one that needs to set full repo access only Thanks again for all the help @VincentTam 👍 |
It's better to select a minimal set of priviledges due to the spam problem that I've mentioned. |
Great thanks! Just curious @VincentTam , can you tell me exactly what |
I don't remember why I checked these one year ago. They might be related to creating PR & accepting invitations. |
That's interesting. This is now my latest token that works. When I used only the With the public repo access, I'm now not sure if the repo_hook is still needed so might as well try it with another one. In short, maybe this particular access token setup needs final confirmation so it can be properly documented just for staticman? |
I've left a comment under your linked gist: https://gist.github.com/jannispaul/3787603317fc9bbb96e99c51fe169731. @jannispaul has changed wordings to clarify the scopes. I'm not sure if As the name suggests, |
Yes, I am currently on a free plan so I have set it to public only. Thanks.
I see, will try without this soon. |
…crolled Fully remove the avatar image when scrolling down
I tried a heroku instance, the github account invite went OK! successfully, but having issues posting comments and getting a 500 error. I have already and only updated the form action to my heroku url.
admin:repo_hook
checked all under it.key.pem
file to keyRSA_PRIVATE_KEY
Heroku settings -> config vars (web/dashboard)@VincentTam I'm using your repo with the deploy branch. Any ideas?
The text was updated successfully, but these errors were encountered: