Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
tim_beynart
Level 7

RAF logs errors when no ads available

Similar to https://forums.roku.com/viewtopic.php?f=34&t=92104, when I have RAF enabled and I switch to linear content (which has no ads), I start seeing these messages in the log during playback:
BRIGHTSCRIPT: ERROR: Runtime: FOR EACH value is Invalid: roku_ads_lib:/Roku_Ads.brs(3316)

This also happens when I switch to VOD content with no ads. I am using SSAI and am using stitchedAdsInit to load the ad data. This happens in Roku_Ads Framework version 2.0.
Is suspect this is just poor validation of ad data in RAF, but is there something I should be concerned about? My QA team is reluctant to sign off on an app that logs a ton of errors around ad logic.
0 Kudos
2 Replies
Roku Employee
Roku Employee

Re: RAF logs errors when no ads available

"tim_beynart" wrote:
Similar to https://forums.roku.com/viewtopic.php?f=34&t=92104, when I have RAF enabled and I switch to linear content (which has no ads), I start seeing these messages in the log during playback:
BRIGHTSCRIPT: ERROR: Runtime: FOR EACH value is Invalid: roku_ads_lib:/Roku_Ads.brs(3316)

This also happens when I switch to VOD content with no ads. I am using SSAI and am using stitchedAdsInit to load the ad data. This happens in Roku_Ads Framework version 2.0.
Is suspect this is just poor validation of ad data in RAF, but is there something I should be concerned about? My QA team is reluctant to sign off on an app that logs a ton of errors around ad logic.

This particular diagnostic - i checked the line in source - nothing for you to be worried about. It is a warning from FOR EACH loop being asked to enumerate over `invalid` - which value was chosen to indicate empty list in another place. I am taking a note for us to fix this in next version, however. Thank you and keep reporting such concerns.
0 Kudos
tim_beynart
Level 7

Re: RAF logs errors when no ads available

Awesome, thanks for the reassurance. 
I ended up disabling the call to stitchedAdHandledEvent in the event loop when we play back content with no ads, which I am guessing effectively disables RAF for this use case.  
0 Kudos