You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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.
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!
The text was updated successfully, but these errors were encountered: