fastapi-course's Issues
500 Response on Update Blog Action
When trying out the update blog action, I get a 500 response, with the following error in console:
AttributeError: 'Blog' object has no attribute 'items'
It appears others have run into this sort of issue. See this link.
I'm using the enviroment provided with the repo, so I'm not sure what other variation there could be. Looking at other examples. it seems other developers opt to loop through the contents of the request, instead of passing the whole object as an argument into update().
Using Python 3.7.8
Issue with creation of a Blog
Hello. Thanks for the tutorial. I would like to highlight that the function to create a blog is not completely done. We need to pass the user_id as an argument. But in this demo, this value is set to 1. This means all the blog created will be assigned to user with id=1.
cannot import name 'EXACT_TOKEN_TYPES' from 'token'
After creating the Token.py file and importing it on Authentication.py. It gives out the error
from token import EXACT_TOKEN_TYPES ImportError: cannot import name 'EXACT_TOKEN_TYPES' from 'token' (C:\Users\110342\source\sources\FastAPI - Tutorial\Blog\token.py)
RecursionError
maximum recursion depth exceeded in comparison
Update API doesn't work
AttributeError: 'Blog' object has no attribute 'items'
Fetch current active user.
In a repository blog, you are just passing user_id = 1. But it should be any user which is active currently. So how we can fetch that active user_id.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.