0

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 Answer 1

1

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": {...}
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.