Skip to content
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

Resolve get_headers() timeout warning #11

Open
ethanosullivan opened this issue May 18, 2022 · 0 comments
Open

Resolve get_headers() timeout warning #11

ethanosullivan opened this issue May 18, 2022 · 0 comments
Assignees
Labels

Comments

@ethanosullivan
Copy link
Member

A user reached out to me saying they had an issue converting an XML feed:

https://api.factmaven.com/xml-to-json/?xml=https://nitter.net/official_kep1er/rss

This is the error is gives:

<br />
<b>Warning</b>:  get_headers(https: //nitter.net/official_kep1er/rss): Failed to open stream: Connection timed out in <b>/home/factmaven/www/xml-to-json/index.php</b> on line <b>35</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type bool in <b>/home/factmaven/www/xml-to-json/index.php</b> on line <b>36</b><br />
{
    "error": {
        "timestamp": "2022-05-18 12:17:00 EST",
        "status": 0,
        "title": "",
        "detail": "The URL you provided does not point to an valid XML feed. Please check that you entered the correct URL.",
        "url": "/xml-to-json/?xml=https://nitter.net/official_kep1er/rss"
    },
    "meta": {
        "version": "2.0.2",
        "copyright": "Copyright 2011-2022 Fact Maven",
        "link": "https://factmaven.com/",
        "authors": [
            "Ethan O'Sullivan",
            "Edward Bebbington"
        ]
    }
}

It looks like there is some timeout issue with accessing the feed. I'll need to investigate further.

@ethanosullivan ethanosullivan self-assigned this May 18, 2022
@ethanosullivan ethanosullivan changed the title Resolve get_headers() warning Resolve get_headers() timeout warning May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant