0
votes

getting exception when using azure function refernce having cosmos db in other service :

java.lang.NoSuchMethodError: reactor.netty.http.client.HttpClient.request(Lshadow/netty/handler/codec/http/HttpMethod;)Lreactor/netty/http/client/HttpClient$RequestSender;
at com.azure.cosmos.implementation.http.ReactorNettyClient.send(ReactorNettyClient.java:132)
1

1 Answers

1
votes

Is it this issue?

Try adding FUNCTIONS_WORKER_JAVA_LOAD_APP_LIBS to your App Settings. E.g. via local.settings.json:

{
  "IsEncrypted": false,
  "Values": {
    "FUNCTIONS_WORKER_RUNTIME": "java",
    "AzureWebJobsStorage": "FUNCTION_APP_STORAGE_CONN_STR_PLACEHOLDER_VALUE",

    "FUNCTIONS_WORKER_JAVA_LOAD_APP_LIBS": 1,


    "MY_SETTING_1": "VAL1"
    ...
  },
  "ConnectionStrings": {...}
}