Dear Microsoft Dapr Support Team,
I hope this message finds you well.
I am encountering an issue when attempting to invoke Python services using Dapr. The following error is appearing:
java
Copy code
code
Upon investigating, it seems this error occurs when order information is incomplete or missing. However, despite extensive attempts to resolve this, including referencing the official Dapr documentation and implementing the sample code provided, the error persists.
As a temporary workaround, I am routing the request through a gateway, but this is not a viable long-term solution. I plan to revisit this issue after addressing higher-priority tasks and bugs.
Could you provide any insights or guidance on the root cause and how to resolve this issue? Your support would be greatly appreciated.
this is my code :
with DaprClient() as d:
#last_headers = [("invoker-app-id", "filemanagement"),("data","data")]
if method.lower() == "get":
response = d.invoke_method(
appid,
path,
data='{"message":"Hello World"}',
metadata=None,
content_type="application/json",
)
else:
response = d.invoke_method(
appid, path, data=payload, metadata=None, http_verb="post"
)
and this is the view that i received the invoke :
class Test1(APIView):
parser_classes = [JSONParser]
def post(self, request, *args, **kwargs):
print(request.data)
but the request.data is empty
Thank you in advance for your assistance.
Best regards, Mhd Issa