Coder Social home page Coder Social logo

Comments (6)

ruromero avatar ruromero commented on May 30, 2024

What datacontenttype are you using? It only supports application/json

from cloudevents-player.

snowwolf007cn avatar snowwolf007cn commented on May 30, 2024

the player's default is application/json, isn't it?

from cloudevents-player.

zacheryph avatar zacheryph commented on May 30, 2024

I get the following attempting to send events.

  |   | 2022-05-13 23:03:40 | 2022-05-14 04:03:40,458 ERROR [com.red.sys.too.clo.ser.MessageService] (pool-9-thread-2) Unable to send cloudEvent: java.util.concurrent.CompletionException: javax.ws.rs.WebApplicationException: Unknown error, status code 500

  |   | 2022-05-13 23:03:40 | at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
  |   | 2022-05-13 23:03:40 | at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
  |   | 2022-05-13 23:03:40 | at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:932)
  |   | 2022-05-13 23:03:40 | at java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:907)
  |   | 2022-05-13 23:03:40 | at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
  |   | 2022-05-13 23:03:40 | at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1705)
  |   | 2022-05-13 23:03:40 | at org.jboss.resteasy.microprofile.client.impl.MpClientInvocation$Decorator.lambda$decorate$0(MpClientInvocation.java:93)
  |   | 2022-05-13 23:03:40 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  |   | 2022-05-13 23:03:40 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  |   | 2022-05-13 23:03:40 | at java.lang.Thread.run(Thread.java:829)
  |   | 2022-05-13 23:03:40 | at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:553)
  |   | 2022-05-13 23:03:40 | at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
  |   | 2022-05-13 23:03:40 | Caused by: javax.ws.rs.WebApplicationException: Unknown error, status code 500
  |   | 2022-05-13 23:03:40 | at org.jboss.resteasy.microprofile.client.DefaultResponseExceptionMapper.toThrowable(DefaultResponseExceptionMapper.java:21)
  |   | 2022-05-13 23:03:40 | at org.jboss.resteasy.microprofile.client.ExceptionMapping$HandlerException.mapException(ExceptionMapping.java:39)
  |   | 2022-05-13 23:03:40 | at org.jboss.resteasy.microprofile.client.async.AsyncInterceptorRxInvoker.lambda$whenComplete$0(AsyncInterceptorRxInvoker.java:56)
  |   | 2022-05-13 23:03:40 | at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:930)
  |   | 2022-05-13 23:03:40 | ... 9 more

Scratch all this. I am using the kafka broker and it seems ingress-broker is hardcoded.

from cloudevents-player.

ruromero avatar ruromero commented on May 30, 2024

I'll take a look next week

from cloudevents-player.

ruromero avatar ruromero commented on May 30, 2024

@zacheryph I have tested myself and it might be you deployed the broker in a different namespace or the broker name is not default I will work on more flexible configurations.
If you can't make it work please ping me on the knative slack channel

from cloudevents-player.

ruromero avatar ruromero commented on May 30, 2024

@snowwolf007cn did you fix the issue? I haven't been able to reproduce it.

from cloudevents-player.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.