Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

[API] Create handout error

1441939672

Edited 1441939691
Ada L.
Marketplace Creator
Sheet Author
API Scripter
When I create a handout through the API, like this: createObj('handout', {     name: 'my handout' }); ...I get the following error message in the API console:  "ERROR: You cannot set the imgsrc or avatar of an object unless you use an image that is in your Roll20 Library. See the API documentation for more info." The handout is created successfully, but I wasn't setting an imgsrc or avatar property on it.
1441948095
The Aaron
Roll20 Production Team
API Scripter
You can safely ignore this error message.  It occurs because the default value for imgsrc and avatar is '', but when it is evaluated, it is not in the Roll20 Library.
1441949205
Pat S.
Forum Champion
Sheet Author
As the original post has been answered and the problem resolved, this thread will be closed.