Skip to content

getArticleUris sometimes null sometimes works (based on order / amount of urls) #63

Description

@Palmik

Example (this happens for both the Python and REST API (as the Python just calls the REST API directly)

Multiple URLs (the dailymail will get null -- only if it's second, it works if it's first!):

curl --request POST \
     --url "http://eventregistry.org/api/v1/articleMapper" \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
    "articleUrl": [
        "https://www.business-standard.com/article/pti-stories/japan-eyes-record-defence-budget-amid-n-korea-china-threats-118083100326_1.html",
        "https://www.dailymail.co.uk/money/saving/article-12583973/Half-Premium-Bonds-prizes-won-maximum-50-000-holding.html"
    ],
    "includeAllVersions": true,
    "deep": true,
    "apiKey": "XXX"
}
{
    "https://www.business-standard.com/article/pti-stories/japan-eyes-record-defence-budget-amid-n-korea-china-threats-118083100326_1.html": "936069503",
    "https://www.dailymail.co.uk/money/saving/article-12583973/Half-Premium-Bonds-prizes-won-maximum-50-000-holding.html": null
}

Single URL (the dailymail will be mapped):

curl --request POST \
     --url "http://eventregistry.org/api/v1/articleMapper" \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
    "articleUrl": [
        "https://www.dailymail.co.uk/money/saving/article-12583973/Half-Premium-Bonds-prizes-won-maximum-50-000-holding.html"
    ],
    "includeAllVersions": true,
    "deep": true,
    "apiKey": "XXX"
}
{
    "https://www.dailymail.co.uk/money/saving/article-12583973/Half-Premium-Bonds-prizes-won-maximum-50-000-holding.html": "7763074647"
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions