-
Notifications
You must be signed in to change notification settings - Fork 27
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
IndexError: list index out of range #23
Comments
Check current version. I run into the same issue and fixed it. |
I guess the issue was in the following function of pymessegener in your fb bot. bot.send_text_message(sender_id,elements[0]['title']) works fine. |
@nprabhav i got the same error when I call
how can I fix this? trying your last hint, but can't find |
Are you working with current version from github? If no, does this change fix it for you? I didn't run into OAuthException at all however. |
thanks for your quick reply @Nowado before I describe my tryings, here is my env: here is what I tried: 1, install with 2, start a new pipenv folder, and install with
and of course, if I try 3, start a new pipenv folder, and install with
so, what should I do to install the |
@2anyone There is problem in gnewsclient in retrieving the link of the article, what I did to make it run was I used a try except block, go to gnewsclient.py and insert the line 136 in try and in except you can set it to None. |
@Nowado I was talking about your Facebook Messenger Bot. |
Getting error while calling client.get_news()
python3.6/site-packages/gnewsclient/gnewsclient.py", line 136, in scrape_feed
article['link'] = entry.link['href'].split('&url=')[1]
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: