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

Doesn't even start #159

Open
arczello opened this issue Jan 30, 2022 · 2 comments
Open

Doesn't even start #159

arczello opened this issue Jan 30, 2022 · 2 comments

Comments

@arczello
Copy link

Reports "../flask-blueprint-tutorial-master/flask_blueprint_tutorial/api.py", line 18, in fetch_products
products = req.json()["products"]
KeyError: 'products'

What sense it makes to publish something without basic testing?

@wuzzy1212
Copy link

So, you probably have not even grabbed the API key that is mentioned in the tutorial. If you do not read the tutorial in its entirety you can be sure that things will not work correctly. I have worked with flask/python for years, and I can tell you that this is the absolute BEST flask-blueprint tutorial there is on the internet. It's clean, simple, elegant and uses all best practices and methods (IMHO) when building out an application that utilises these technologies. Cheers.

@hiven
Copy link

hiven commented Jan 19, 2023

Could you use faker or similar instead of needing people to sign up for a key for bestbuy, or even use an open API instead?

Really like your tutorial but also finding the bestbuy key could be a little off putting for some following along.

https://mixedanalytics.com/blog/list-actually-free-open-no-auth-needed-apis/

Just a thought

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

3 participants