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

API thinks image is not in library

1469283944
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
So, I'm trying to get a script to create tokens based on characters' default tokens. Extracting the data from the character is not the problem. The problem comes when I try to create the token. The API is convinced that I am trying to use an art asset that is not in my library (aka from the marketplace). The address that gets logged for the imgsrc is the exact same address as the image in my library. Any ideas for what could be going wrong? The imgsrc of the test token:&nbsp;<a href="https://s3.amazonaws.com/files.d20.io/images/7024899/82DNjKiGN1u8trDK1BQM4g/thumb.png?1420600584" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/7024899/82DNjKiGN1u8trDK1BQM4g/thumb.png?1420600584</a> The imgsrc from the library: <a href="https://s3.amazonaws.com/files.d20.io/images/7024899/82DNjKiGN1u8trDK1BQM4g/thumb.png?1420600584" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/7024899/82DNjKiGN1u8trDK1BQM4g/thumb.png?1420600584</a>
1469316894
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Had in incorrect variable definition that was causing issues. It's fixed now