-
Notifications
You must be signed in to change notification settings - Fork 543
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
Staticman Instance gives 'Internal Server Error' #299
Comments
Hi, it would be better if you provide more info about your instance.
|
|
Thanks for your response. For my first question, I mean, the Git SHA1 hash of the
|
I believe I have something misconfigured. When I tried to add staticmanlab as a collaborator and accepted the invite using https://usinginstanceurl/v2/connect/my-username/myrepo , It worked perfectly returning an OK. |
Your bot @staticmanaima takes the role of "developer" in each project to which it has write access. It shouldn't own any project. That's why we need these API token to restrict the bot's access. I should have asked for the output of
instead. The I had read your first reply slowly, now I've almost got it. You've edited |
I made another instance of staticman and made the following changes:
Then i just |
Is there any other way around? |
See the first two commands in this Stack Overflow answer: https://stackoverflow.com/a/28954238/3184351 Git, designed by Linus Torvalds, is a tool for testing stuff, so it's sensible to learn how to git merge new stuff that hasn't been merged into the official repo. |
Am still unable to get it running. |
That file is irrelevant. I've tested that myself with my instance. It seems that 4eb5ce2 is breaking the legacy support. |
How come @staticmanlab is not affected by it and is running perfectly? |
No, I meant that if you try to build a staticmanlab2 version , will #283 cause problems? |
This is too confusing. Can you finally tell what Staticman should I clone (yours or eduardoboucas?) and where exactly is your heroku code branch |
There're no obligations, just suggestions based on hours of testing as an amateur. I'll keep using Git references (e.g. branch names, commit hash) to make things clear. My Regarding the official repo, I'm not including recent commits on Another reason for using alternative API instances is issue #83. I quote the project owner's response for your reference.
This suggestion has been proposed in unmerged PR #195. You may see #298 for the possible impact after invitating a Staticman bot without reCAPTCHA setup. GitHub Apps don't prevent this problem. You're right that things might seem confusing. Now, the official docs can't keep up with v3, and docs requests like #291 and #293 are inactive because it's a moving target. People are writing their own versions of guides, like
As a non developer, I started by understanding the basic ideas (without looking the code, since I don't know Node.JS), then testing PR's, searching for errors and asking for help. That's why I've built up demo When compared to Gitalk, Isso, Disqus, etc, the setup is more involved. On the other hand, Staticman offers a greater flexibility since Staticman is independent of blog generators (c.f. #264 (comment)), so you may customise your UI, and more importantly, own your comments. |
Update: I've unmerged PR231, and tried merging 9ce2c48 in my instance for Framagit to avoid disrupting @staticmanlab's service.
When {
"success":false,
"rawError":{"_smErrorCode":"GITHUB_CREATING_PR"},
"errorCode":"GITHUB_CREATING_PR"
} Need to give #288 a try. |
Please do not change anything in @staticmanlab as for now. I am bit occupied with figuring out the working of staticman after the private instance is running (which I am currently using yours). I'll get back to this issue in a day or two. |
Both my instances for Framagit and GitLab are associated to @staticmanlab, so yes for the more popular one (later), and no for the less popular one, which I'll use for testing. In this case, the service of the bot will be reassured. In any case, they're supposed to be used for testing, and are hosted on free Heroku dyno. After 1000 hours, my free monthly hours will be used up, but that should be enough for @staticmanaima. |
If I give you another Heroku account and a Github Bot account, could you make a copy of @staticmanlab for me? |
Please don't do so. I've recently read the terms of service due to issue #298. Lemme find the relevant terms.
If you don't mind the webhook problem mentioned in #288, try that PR, and make the necessary modifications according to the self-host API guide on Data Science Blog (see the link above). (You can avoid errors by manually deleted merged branches by clicking the button on the PR page after the merge. That's just one more click per PR. One already clicks a button for merging.) Otherwise, you may base your modifications on #219. |
Alright, give me a day or two and I'll do that. |
I cloned Staticman from your deploy branch and everything is working perfectly now. @staticmanaima is working great now. Thanks for your help. Closing this issue now. |
@sachin10101998 You may consider merging
|
Octokit/Rest part is already taken care of when I cloned it from your deploy I guess. |
Hi @VincentTam I tried deploying your staticman instance to heroku. I succesfully set up everything but when i post a comment on my website, it returns a error 500 - Internal server error which says time out or duplicate. Any leads on this? The repositiory is https://github.com/sealedhermit/sealedhermit.github.io. The site is live at https://sealedhermit.github.io. It would be of great help if you can point me in a right direction. I have been on this for weeks now. |
Nevermind. I figured that out. Everything works well now. Thank you. |
Out of curiosity, what was it? I think is a good idea to share it even if you solved it by yourself, in case someone else might be stepping on a similar kind of issue. |
HTTP → HTTPS in Hugo URL
I tried hosting my own instance of Staticman on Heroku. I cloned the repo, added the Github access token, Private RSA Key and hosted it as heroku app.
It's currently being run at https://staticmanaima.herokuapp.com
When I visit the site, it gave 'Hello from Staticman version 3.0.0!
Then I added the account from which I had taken the GitHub access token and added it in collaborators of my main repo but when I try to connect it through
https://staticmanaima.herokuapp.com/v2/connect/sachin10101998/aima-exercises/ it gives 'Internal Server Error'
Has someone faced this issue before? Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: