java-sdk icon indicating copy to clipboard operation
java-sdk copied to clipboard

Given Metadata is ignored on Htttp Service invocation

Open tillganster opened this issue 3 years ago • 1 comments

Expected Behavior

When Http-Headers are give to method invokeMethod of class DaprClient these headers should be sent along with the request.

Actual Behavior

It seems that the metadata is ignored when sending request. In AbstractClient line 115 see. There the given matadata is ignored. In DaprClientHttp line 211 see there are added additional headers to the request, but they come from the HttpExtension object.

Steps to Reproduce the Problem

  • invoke a service over http while giving a Map<String,String> to the metadata parameter
  • the invoked service won't get these Headers

tillganster avatar May 30 '22 13:05 tillganster

Thanks for reporting. FYI, in general we encourage users to use a native HTTP client for service invocation calls and not use InvokeMethod.

yaron2 avatar May 31 '22 00:05 yaron2

/assign

pravinpushkar avatar Aug 25 '22 12:08 pravinpushkar