Question about what could be causing this error message: Code generation from strings disallowed fo…

Asked Jul 23, 2020·2 replies·Last activity 6 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hi,

I was able to setup a urlfetch call by following the thread below:
/t/urlfetch-website-with-no-api-end-point/1534603558748553448#m15346035764820…

here is the code I'm using for my command:

I am getting a new error message which is:

Code generation from strings disallowed for this context.
The code is the same as below

$(eval w=$(urlfetch json https://www.helbreath.net/top-eks);r=w.slice(w.search(/Brosky/gi),w.indexOf(<tr,w.search(/Brosky/gi))).slice(55,75).replace(/\//g,`).replace(/<td>|<tr>|td>/g,`); )

Thank you for any help provided!

2 replies

Hey @Sleepy Orangutan!

To me it seems like it just takes some time for the website to update, so that's not something any of us can have an influence on, sorry.
Nightbot will pull the current/latest version of the website every time the command is called, it doesn't store any variable data in a memory, so it can't get "stuck" on a specific value.

Are you using Pastebin Dan_Huang? Because I am currently getting the same issue and it is only on my Pastwbin commands.