facebookarchive / instant-articles-builder

Instant Articles Rules Editor
https://facebook.github.io/instant-articles-builder
Other
125 stars 67 forks source link

preview issue (HTTP 500) #182

Open sasdj2418 opened 3 years ago

sasdj2418 commented 3 years ago

Steps required to reproduce the problem

  1. Link all tags
  2. Can't see any error message explaining the reason.
  3. developer tools can see network http 500 error

Expected Result

Actual Result

Environment Info

Version: 0.2.3 URL: https://www.edh.tw/article/21534 (Every article) Rules:

{
    "generator_name": "facebook-instant-articles-builder",
    "generator_version": "0.2.3",
    "rules": [
        {
            "class": "TextNodeRule"
        },
        {
            "class": "GlobalRule",
            "selector": "html",
            "properties": {
                "article.title": {
                    "attribute": "content",
                    "selector": ".article-detail .article .title",
                    "type": "element"
                },
                "author.name": {
                    "attribute": "itemprop",
                    "selector": ".article-detail .article .date-author .autor",
                    "type": "string"
                },
                "image.url": {
                    "attribute": "src",
                    "selector": ".article-detail .article_img img",
                    "type": "string"
                },
                "article.body": {
                    "attribute": "itemprop",
                    "selector": "#article_page",
                    "type": "element"
                },
                "article.canonical": {
                    "attribute": "href",
                    "selector": "link[rel=canonical]",
                    "type": "string"
                }
            }
        },
        {
            "class": "BlockquoteRule",
            "selector": "blockquote"
        },
        {
            "class": "ParagraphRule",
            "selector": "p"
        },
        {
            "class": "H2Rule",
            "selector": "h2"
        },
        {
            "class": "H1Rule",
            "selector": "h1"
        },
        {
            "class": "ListElementRule",
            "selector": "ol, ul"
        },
        {
            "class": "ListItemRule",
            "selector": "li"
        },
        {
            "class": "AnchorRule",
            "selector": "a",
            "properties": {
                "anchor.href": {
                    "attribute": "href",
                    "selector": "a",
                    "type": "string"
                }
            }
        },
        {
            "class": "ItalicRule",
            "selector": "i"
        },
        {
            "class": "EmphasizedRule",
            "selector": "em"
        },
        {
            "class": "BoldRule",
            "selector": "b, strong"
        },
        {
            "class": "ImageRule",
            "selector": "img",
            "properties": {
                "image.url": {
                    "attribute": "src",
                    "selector": "img",
                    "type": "string"
                },
                "image.caption": {
                    "attribute": "src",
                    "selector": "img",
                    "type": "element"
                }
            }
        }
    ]
}

image