25
Views
6
Comments
[Pusher.com APIs] Cannot assign a Javascript object with value
pusher-com-apis
Web icon
Forge asset by LINKIT R&D
Application Type
Traditional Web

Hello,

Using the PusherPublish works fine but in console I have a lot of errors (The message I passed is JSON).

Any idea why?

Thanks in advance

2025-11-11 13-17-51
Rajan C

I guess you have to convert the json object to javascript text

JSON.parse(JSON.stringify(y));

. Is it possible for you  to share the OML file


2023-08-28 07-00-10
Paulo Torres
Champion

I think you didn't understand the question or you never used this extension.

The action requires a text, not an object and it's an extension (Server-side), so no Javascript.

Regards

2025-11-11 13-17-51
Rajan C

Yes you are right I have not used this forge component earlier, rather I have used this component which has more flexibility.

Using the above said component we have build a live chat application and its working fine in PROD.


And to resolve this issue you might need to implement some JavaScript code to convert the Json to string. And I have highlighted the area where this error would have occurred.

2023-08-28 07-00-10
Paulo Torres
Champion

Hello,

Probably this one was made by you. I can't find in the forge.

2025-11-11 13-17-51
Rajan C

Here is the link https://www.outsystems.com/forge/component-overview/17362/pusher-client-traditional-channels But unfortunately this is the new version of the component so the component owner modified the older version and recreated this. 

2023-08-28 07-00-10
Paulo Torres
Champion

Thanks a lot. Do you think this one doesn't work?

I'll test and let you know.

Paulo Torres

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.