---
title: "Comment by Aditya Rajbhar on \"Building A Blog Service With FastAPI And Redis OM\" | Hashnode"
description: "I am new to FastAPI &amp; I am getting this error. Can anyone help 1 fastapi.exceptions.FastAPIError: Invalid args for response field! Hint: check that &lt;clas"
url: "https://hashnode.com/posts/building-a-blog-service-with-fastapi-and-redis-om/62f6988ffffdab933bde54db/comment/64fc80548b05f2b3821c26d1"
---

[Discussion](https://hashnode.com/posts/building-a-blog-service-with-fastapi-and-redis-om/62f6988ffffdab933bde54db)

Comment [Building A Blog Service With FastAPI And Redis OM](https://hashnode.com/posts/building-a-blog-service-with-fastapi-and-redis-om/62f6988ffffdab933bde54db)

[Aditya Rajbhar](https://hashnode.com/@codebyaadi)

[Sep 9, 2023](https://hashnode.com/posts/building-a-blog-service-with-fastapi-and-redis-om/62f6988ffffdab933bde54db/comment/64fc80548b05f2b3821c26d1)

I am new to FastAPI & I am getting this error. Can anyone help

1 fastapi.exceptions.FastAPIError: Invalid args for response field! Hint: check that <class 'main.Product'> is a valid Pydantic field type. If you are using a return type annotation that is not a valid Pydantic field (e.g. Union\[Response, dict, None\]) you can disable generating the response model from the type annotation with the path operation decorator parameter response\_model=None. Read more: [fastapi.tiangolo.com/tutorial/response-model](https://fastapi.tiangolo.com/tutorial/response-model/) \`
