dapr-wasm
dapr-wasm copied to clipboard
Error: error getting topics from app - unexpected end of JSON input - error occurred while beginning pubsub messages
Hi,
I am performing the grayscale tutorial example i.e. make run-api-rs
the following error is occurring.
ERRO[0000] error getting topics from app: unexpected end of JSON input app_id=image-api-rs instance=wasm-oci-demo scope=dapr.runtime type=log ver=1.4.2
ERRO[0000] error occurred while beginning pubsub messages: error getting topics from app: unexpected end of JSON input app_id=image-api-rs instance=wasm-oci-demo scope=dapr.runtime type=log ver=1.4.2
INFO[0000] dapr initialized. Status: Running. Init Elapsed 9.416037000000001ms app_id=image-api-rs instance=wasm-oci-demo scope=dapr.runtime type=log ver=1.4.2
The following video (which starts just as the error occurs) demonstrates the above error in action.
https://youtu.be/A5EhO7cNTCw?t=392
It seems that dapr list
is displaying the correct output (in terms of apps, ports etc.)
wasmedge@wasm-oci-demo:~$ dapr list
APP ID HTTP PORT GRPC PORT APP PORT COMMAND AGE CREATED PID
go-web-port 3500 40659 8080 ./web-port 36s 2021-10-05 02:38.25 334410
image-api-rs 3502 34493 9004 ./target/debug/im... 23s 2021-10-05 02:38.38 334530
image-api-go 3501 40639 9003 ./image-api-go 9s 2021-10-05 02:38.52 334658
Is it possible that the grayscale needs to be added to the config i.e. https://github.com/second-state/dapr-wasm/blob/main/config/conf.json
Any suggestions would be greatly appreciated.
Thanks Tim
Hi @tpmccallum , thanks for reporting this issue.
components is a core concept of Dapr, but we haven't used for this demo-application, such as pubsub
, schedule
, etc.
So, we'd better remove these unnecessary configurations to avoid messy messages. https://github.com/second-state/dapr-wasm/pull/15 is created for resolving this issue.
Thanks I will give this a try and let you know how it goes. Thanks again. Tim