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

Cannot change news source country #1

Open
Collosa opened this issue Feb 8, 2025 · 0 comments
Open

Cannot change news source country #1

Collosa opened this issue Feb 8, 2025 · 0 comments

Comments

@Collosa
Copy link

Collosa commented Feb 8, 2025

const response = await fetch( https://api.mediastack.com/v1/news?access_key=${process.env.MEDIASTACK_API_KEY}&languages=en&countries=us&categories=${topic}&limit=${process.env.PER_TOPIC_NEWS_LIMIT}`
);
const data = await response.json();`

This code snippet is the one that calls media stack and determine country source. Once you change the country code in the snippet above , curl --header "X-Epigram-Secret: 54321" http://localhost:3000/api/news/populate stops to function. It just gives no response.

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

1 participant