Skip to content

interceptor error #29

@KevinFan1

Description

@KevinFan1

image

my test interceptor code:

import grpc
from loguru import logger`



class ValidateInterceptor(grpc.ServerInterceptor):

    def intercept_service(self, continuation, handler_call_details):
        logger.info('this is my interceptor')
        return continuation(handler_call_details)

image

i think there is something wrong in djangogrpcframework settings while handling interceptor path, it needs the () to instantiate the class which imports from the settings with string. Could you help me take a look?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions