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

newsAPI.getTopHeadlines Error #3

Open
gcurbelo123 opened this issue May 7, 2019 · 2 comments
Open

newsAPI.getTopHeadlines Error #3

gcurbelo123 opened this issue May 7, 2019 · 2 comments

Comments

@gcurbelo123
Copy link

Hey Lucas,

Love your Swift Client for the News API. Have been using it for a while with no problems. However, just recently, the function "newsAPI.getTopHeadlines(country: NewsCountry(rawValue: String)" started to give me the error "unableToParse" whenever I pass in "us" as the country. It works with other countries, just not "us."

I know it's not how I am passing the value of the country in, as I use the "newsAPI.getSources(country: NewsCountry(rawValue: String)" and it works when I pass in "us."

Any help would be appreciated. Thank you!

@gcurbelo123
Copy link
Author

gcurbelo123 commented May 8, 2019

So, the error only happens every once in a while, and for a short period of time -- I would say roughly 5-10 minutes. Could this be due to too many API calls?

EDIT: However, I don't think this would be the case, as when I pass in a different country's abbreviations, like "ca," it works every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@gcurbelo123 and others