Hi Weido,
I tested product-sp 4.4.0 and there seems to be a bug in the Gadget
generation wizard, Thanks for pointing this out bringing it to our
attention. I have created an github issue which you can track from[1]. We
will provide a fix for this in a future update. Until that this problem can
be resolved by writing a custom widget in the dashboard which you can find
how to do that in our documentation[2]. Also in the given siddhi app I
noticed that you are publishing to websocket url "ws://localhost:8025/abc"
this should be changed to "wss://<sp-host>:<port>/websocket-provider/{topic}"
this endpoint is shown in the terminal when product sp starts up.
[1] - https://github.com/wso2/carbon-dashboards/issues/1197
[2] - https://docs.wso2.com/display/SP440/Creating+Custom+Widgets
Thanks and regards,
Charuka
On Wed, Dec 11, 2019 at 6:09 PM Damith Wickramasinghe <[email protected]>
wrote:
>
>
> On Wed, Dec 11, 2019 at 5:58 PM W. E. <[email protected]> wrote:
>
>> Hi,
>>
>>
>> I created the Siddhi query below to sent data from my Siddhi application
>> to a dashboard widget with a websocket. The problem is when I try to create
>> a widget in the dashboard tooling with websocket provider I get this error:
>> "*Failed to load provider configurations*". I've looked in the
>> documentation
>> https://docs.wso2.com/display/SP420/Working+with+Data+Providers#WorkingwithDataProviders-WebSocketProvider.
>> But I still dont understand it. Do I have to enter anything in the
>> deployment.yaml file in the dashboard section of the wso2 installion? If
>> yes, where and what do I have to enter?
>>
>>
>> @Sink(type = 'websocket', url = 'ws://localhost:8025/abc',
>>
>> @map(type='xml'))
>>
>> define stream Foo (attribute1 string, attribute2 int);
>>
>>
>> Thanks for the help,
>>
>> Wiedo
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> Associate Technical Lead | WSO2 Inc.
> lean.enterprise.middleware
>
> mobile: *+94728671315*
>
>
--
*Charuka Karunanayake*
Software Engineer | WSO2
E-mail: [email protected]
Mobile: +94711611848
Web: http://wso2.com
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev