io.netty.handler.codec.http.multipart.HttpPostRequestEncoder$ErrorDataEncoderException

java.io.FileNotFoundException: /Users/forbushbl/Projects/operations-websocket-proxy (Is a directory)

Solutions on the web2

  • java.io.FileNotFoundException: /Users/forbushbl/Projects/operations-websocket-proxy (Is a directory)
  • via GitHub by ghristov
    , 1 year ago
    Cannot create a Encoder if not a POST
  • Stack trace

    • io.netty.handler.codec.http.multipart.HttpPostRequestEncoder$ErrorDataEncoderException: java.io.FileNotFoundException: /Users/forbushbl/Projects/operations-websocket-proxy (Is a directory) at reactor.ipc.netty.http.client.HttpClientFormEncoder.file(HttpClientFormEncoder.java:820) at org.cloudfoundry.reactor.client.v2.applications.ReactorApplicationsV2.lambda$null$22(ReactorApplicationsV2.java:193) at reactor.ipc.netty.http.client.HttpClientOperations$FluxSendForm._subscribe(HttpClientOperations.java:655) at reactor.ipc.netty.http.client.HttpClientOperations$FluxSendForm.subscribe(HttpClientOperations.java:632) at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:38) at reactor.core.publisher.MonoThenMap$MonoThenApplyMain.onNext(MonoThenMap.java:132) at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:124) at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:1613) at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request(FluxMapFuseable.java:180) at reactor.core.publisher.MonoThenMap$MonoThenApplyMain.onSubscribe(MonoThenMap.java:83) at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe(FluxMapFuseable.java:94) at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:54) at reactor.core.publisher.MonoMapFuseable.subscribe(MonoMapFuseable.java:64) at reactor.core.publisher.MonoThenMap.subscribe(MonoThenMap.java:55) at reactor.ipc.netty.channel.ChannelOperations.applyHandler(ChannelOperations.java:465) at reactor.ipc.netty.http.client.HttpClientOperations.onHandlerStart(HttpClientOperations.java:415) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:418) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:454) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.FileNotFoundException: /Users/forbushbl/Projects/operations-websocket-proxy (Is a directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at io.netty.handler.codec.http.multipart.AbstractMemoryHttpData.setContent(AbstractMemoryHttpData.java:135) at io.netty.handler.codec.http.multipart.MixedFileUpload.setContent(MixedFileUpload.java:209) at reactor.ipc.netty.http.client.HttpClientFormEncoder.file(HttpClientFormEncoder.java:813) ... 20 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 2 hours ago
    15 times, 2 weeks ago
    3 times, 2 weeks ago
    Once, 2 weeks ago
    8 times, 3 weeks ago
    194 more bugmates