bmann / microglue

A small glue API server to create a micropub endpoint that can publish to Jekyll and other static sites via git
MIT License
6 stars 0 forks source link

503 Service Unavailable (getting micropub working) #11

Open infominer33 opened 5 years ago

infominer33 commented 5 years ago

I forked bmann/webpage-webmentions, as per: Getting micropub working #5.

Click Deploy to heroku:

as I also explained, while recording my efforts in infominer.id/indieweb/webmentions/.

HTTP/1.1 100 Continue

HTTP/1.1 503 Service Unavailable
Connection: keep-alive
Server: Cowboy
Date: Tue, 21 May 2019 14:23:42 GMT
Content-Length: 506
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache, no-store

<!DOCTYPE html>
    <html>
      <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta charset="utf-8">
        <title>Application Error</title>
        <style media="screen">
          html,body,iframe {
            margin: 0;
            padding: 0;
          }
          html,body {
            height: 100%;
            overflow: hidden;
          }
          iframe {
            width: 100%;
            height: 100%;
            border: 0;
          }
        </style>
      </head>
      <body>
        <iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>
      </body>
    </html>

The Head:

    <link href="https://micro.blog/infominer" rel="me" />
    <link rel="token_endpoint" href="https://tokens.indieauth.com/token">
    <link rel="authorization_endpoint" href="https://indieauth.com/auth">
    <link rel="micropub" href="https://infomicro.herokuapp.com/api/webmention" />
    <link href="https://instagram.com/infominer33" rel="me">
    <link href="https://infominer.id" rel="me"/>
    <link rel="webmention" href="https://infomicro.herokuapp.com/api/webmention" />
    <link href="https://twitter.com/infominer33" rel="me">
    <link href="https://github.com/infominer33" rel="me">
    <link href="mailto:infominer@protonmail.com" rel="me">  
    <link href="https://keybase.io/infominer" rel="me">
    <link rel="pgpkey" href="https://infominer.id/indieweb/key.pub">
    <link href="https://infomicro.herokuapp.com/" rel="me"/>

infominer.id/indieweb/webmentions/:

<script id="webmention-hosted">
(function () {
var sn = document.createElement("script"), s = document.getElementsByTagName("script")[0], url;
url = document.querySelectorAll ? document.querySelectorAll("link[rel~=canonical]") : false;
url = url && url[0] ? url[0].href : false;
sn.type = "text/javascript"; sn.async = true;
sn.src = "//infomicro.herokuapp.com/api/embed?url=" + encodeURIComponent(url || window.location);
s.parentNode.insertBefore(sn, s);
}());
</script>
infominer33 commented 5 years ago

fyi, I've given access to the original app.. tho I'm still hoping to figure out what went wrong w this deploy...

even since signing up for an already running heroku instance, I haven't gotten anything to post to my site.

bmann commented 5 years ago

@infominer33 you shouldn’t need to fork AND If you want to micropub post, that isn’t the webmentions repo, it’s https://github.com/voxpelli/webpage-micropub-to-github

Clicking Deploy to Heroku on THAT page should deploy for you. I haven’t touched the code on my version for a while & it just works, so I can try a fresh install to see if there are issues.

I forked the webmentions repo because I needed to add the app.json that Heroku needs.

infominer33 commented 5 years ago

Im missing some crucial step on setup, perhaps you dont notice because it is familiar to you...

Come to think of it, ive gotten that endpoint running, and signed up to the original, but still no webmentions... so idk whats between there but my head, or content, right?

Or maybe i will try again and it will ‘just work’... so far i havent found any method that works to publish to my site...

bmann commented 5 years ago

@infominer33 use OwnYourGram to troubleshoot — it has really good error messages.

If the GitHub stuff is correct, it should “just work”. I’ve sat next to other people deploying it. Have to get all your headers onto the site.

So if you use eg Quill https://quill.p3k.io/ then you can see where stuff is failing. And also cut/paste logs from Heroku.