question

brendan avatar image
brendan asked

Issues with a Photon RoomEventRaised webook call

Question from a developer:

We're experiencing issues when requesting user data inside of a RoomEventRaised callback function (called from Photon's webhooks). When the user's data gets requested, the script is not executed. However, it works when the user data request is commented out. Is it possible that the request is taking too long or making too many API calls?

CloudScriptphoton
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

If you have a look at the Event History in your title, and filter on the event "title_exceeded_limit", you'll see some errors on another handler, as it's trying to make too many API calls (as a PlayStream-triggered action), but there aren't any for RoomEventRaised, so that's not the issue here.

What I would recommend is to add some logging to the call, so that you can get that info back to the client for your debugging. In particular, I'd recommend putting a try/catch around the server calls so that you can trap any errors that occur. That should get you the details on why the call is failing.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.