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

[HELP] With some console.log errors and warnings

1533946591
Mike W.
Pro
Sheet Author
I am getting a number of errors and warnings in my console.log even when I open a completely new and empty character sheet. Can anyone help with me the meanings and how I may be able to correct them - especially the one that is part of the character sheet coding we did ? ERROR: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' https://*.googlesyndication.com https://*.doubleclick.net <a href="https://partner.googleadservices.com" rel="nofollow">https://partner.googleadservices.com</a> <a href="https://www.googletagservices.com" rel="nofollow">https://www.googletagservices.com</a> <a href="https://ssl.google-analytics.com" rel="nofollow">https://ssl.google-analytics.com</a> <a href="https://www.google-analytics.com" rel="nofollow">https://www.google-analytics.com</a> <a href="https://ajax.googleapis.com" rel="nofollow">https://ajax.googleapis.com</a> <a href="http://ajax.googleapis.com" rel="nofollow">http://ajax.googleapis.com</a> <a href="https://d3clqjduf2gvxg.cloudfront.net" rel="nofollow">https://d3clqjduf2gvxg.cloudfront.net</a> <a href="https://cdn.firebase.com" rel="nofollow">https://cdn.firebase.com</a> https://*.firebaseio.com https://*.tokbox.com https://*.opentok.com <a href="http://static.opentok.com" rel="nofollow">http://static.opentok.com</a> <a href="http://www.google-analytics.com" rel="nofollow">http://www.google-analytics.com</a> <a href="http://cdn.crowdin.com" rel="nofollow">http://cdn.crowdin.com</a> <a href="https://crowdin.com" rel="nofollow">https://crowdin.com</a> <a href="http://stun.l.google.com" rel="nofollow">http://stun.l.google.com</a>". Either the 'unsafe-inline' keyword, a hash ('sha256-QX4CI/e5r69tjxlMTJ1UaTJnsTNfMLt4KqPov2Sl1WY='), or a nonce ('nonce-...') is required to enable inline execution. ERROR: Error in event handler for (unknown): TypeError: k.clipboard.setClipboard is not a function at chrome-extension://admmjipmmciaobhojoghlmleefbicajg/content/scripts/IDSWAX.js:22:492 ERROR: Access to Image at '<a href="http://imgsrv.roll20.net:5100/?src=fc06.deviantart.net/fs71/f/2012/096/b/b/german_soldier_study_by_zorrentos-d4v696y.jpg&amp;cb=5" rel="nofollow">http://imgsrv.roll20.net:5100/?src=fc06.deviantart.net/fs71/f/2012/096/b/b/german_soldier_study_by_zorrentos-d4v696y.jpg&amp;cb=5</a>' from origin '<a href="https://app.roll20.net" rel="nofollow">https://app.roll20.net</a>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="https://app.roll20.net" rel="nofollow">https://app.roll20.net</a>' is therefore not allowed access. WARNING: (This is obviously part of the character sheet code, but I have about 20 of them) The specified value "[[(@{hit_points|max}) * -5]]" is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)? WARNING: 24 Mixed Content: The page at '&lt;URL&gt;' was loaded over HTTPS, but requested an insecure image '&lt;URL&gt;'. This content should also be served over HTTPS. One of the items listed under it: Mixed Content: The page at '<a href="https://app.roll20.net/editor/" rel="nofollow">https://app.roll20.net/editor/</a>' was loaded over HTTPS, but requested an insecure image '<a href="http://imgsrv.roll20.net/?src=raw.githubusercontent.com/Roll20/roll20-character-sheets/master/GURPS/Images/Speed_Range_Table.PNG" rel="nofollow">http://imgsrv.roll20.net/?src=raw.githubusercontent.com/Roll20/roll20-character-sheets/master/GURPS/Images/Speed_Range_Table.PNG</a>'. This content should also be served over HTTPS.
1534555630
Mike W.
Pro
Sheet Author
No one has any ideas? Should I report this as a bug?
1534696441
GiGs
Pro
Sheet Author
API Scripter
Does the sheet load normally? There are a lot of warnings you get when&nbsp; loading a campaign amd opening a character sheet. You dont need to worry about the majority of the errors above. There are two errors that might be worth looking into: The deviant art image: is that an image in your character sheet? It might not be accessible at deviantart. Try rehosting it on imgur and see if its still works (though if you are planning to share the sheet publically, sharing a sheet with that image might violate copyright).&nbsp; That leaves the stat one: The specified value "[[(@{hit_points|max}) * -5]]" is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)? It's hard to know if this is something that needs checking. Do the named stats on the character sheet work okay?
1534839197
Mike W.
Pro
Sheet Author
The image is not something for the character sheet HTML or CSS that I can find. The named stats all are working, and that errors repeats form about 15 of them but everything is functioning. I will nto worry about them as everything seems to be working.&nbsp; I will look deeper on that image some other time. Thanks.