Giter Site home page Giter Site logo

alternative-news's Introduction

alternative-news's People

Contributors

marcushellberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

alternative-news's Issues

updateNewsSources not fetching

I thought this lesson would be great for a low level intro into PWAs. However, as others have discovered, the updateNewsSources code does not generate anything - the select remains empty. What I can't get is why the updateNews section works but the above does not - even though they are of substantially the same structure. On the YouTube video it does apparently work. Unfortunately, I can't replicate that. Has anyone actually changed the code to make the 'sources' dropdown work?

Failed to fetch data

Error : Cannot read property map of undefiend!

i think it is the invalid API key issue. Am I right ?

Your live site also have the same error.
image

image

demo works?

https://marcushellberg.github.io/alternative-news/

online demo does not seem to work, sources empty and no content? idk

Uncaught (in promise) TypeError: Cannot read property 'map' of undefined at updateNewsSources (app.js:28)

GET https://newsapi.org/v2/sources?apiKey=6f4fa5447bb24a2687edecc4c1df43b4 401 (Unauthorized) updateNewsSources @ app.js:24 window.addEventListener.e @ app.js:15 marcushellberg.github.io/:1 Failed to load https://newsapi.org/v2/sources?apiKey=6f4fa5447bb24a2687edecc4c1df43b4: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://marcushellberg.github.io' is therefore not allowed access. The response had HTTP status code 401. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. marcushellberg.github.io/:1 Uncaught (in promise) TypeError: Failed to fetch Promise.then (async) window.addEventListener.e @ app.js:15

thanks

Not working on localhost

Hi,
I cloned the repo after watching your YouTube video about PWA.
It doesn't work on localhost and just gives a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error.

It was a great video. Thanks for that. :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.