-
Notifications
You must be signed in to change notification settings - Fork 52
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
details = "Exception calling application: 'BlogProtoSerializer' object has no attribute 'proto_class'" #45
Comments
You forgot to add one line in your serializers. See: https://djangogrpcframework.readthedocs.io/en/latest/quickstart.html#writing-serializers For information this repo is no more maintained. If you are at the start of your projet considere looking at: https://github.com/socotecio/django-socio-grpc/ |
I checked. Everything is how it's supposed to be. |
You call self.proto_class but it should be self.Meta.proto_class. |
Thank you for your insight. Now I am running into another error. No idea where to look at.
blog.proto :``` package blog; import "google/protobuf/timestamp.proto"; message ImageModel { message Tag { message Category { message Blog { // Request and Response messages for your gRPC service methods message BlogListResponse { // ... Add other request and response messages for Retrieve, Create, Update, and Delete methods // Retrieve message BlogRetrieveResponse { // Create message BlogCreateResponse { // Update message BlogUpdateResponse { // Delete message BlogDeleteResponse { service BlogService {
handlers.py : ``` def grpc_handlers(server):
|
As I said in my first message: For information this repo is no more maintained. If you are at the start of your projet considere looking at: https://github.com/socotecio/django-socio-grpc/ It look like you are doing a small school project. |
I just started working at a company and still learning. This is a small part I was trusted with. I was told to do what I am doing right now. I must use this framework. |
I would really appreciate it if you could guide me through. |
I checked everything and followed every step of the document. Got as much as help from AIs too, no progress. I'll share any code if necessary.
The text was updated successfully, but these errors were encountered: