ERROR: Generic JavaScript View (JavaScript)

I tried to test my workflow in edu-hub but I get this error when I run:

Node: 6:0:8:0:1 (JS Map)
Message:Error in script
SyntaxError: Unexpected token ‘&’
at https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/js/base/node/viz/generic/knime-generic-view-v3.js:94:41
at Object.execCb (https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/core/require.js:5:12897)
at b.check (https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/core/require.js:5:6633)
at b. (https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/core/require.js:5:9054)
at https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/core/require.js:5:814
at https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/core/require.js:5:9515
at each (https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/core/require.js:5:289)
at b.emit (https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/core/require.js:5:9483)
at b.check (https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/core/require.js:5:7192)
at b.enable (https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/core/require.js:5:9381)

It’s working fine in Local side.
how to fix it?

Hi mmrostami,

HTML sanitization that is turned on by default causing this behavior:
https://docs.knime.com/2023-12/analytics_platform_installation_guide/index.html#html-sanitization

https://docs.knime.com/2023-12/business_hub_user_guide/index.html#html-sanitization-hub

Best regards,
Attila

3 Likes

@ACseresnyes thank you for the solution, but I’m using edu-hub and I don’t know how to follow that instruction. :confused:

Hi @mmrostami ,

I can confirm what @ACseresnyes said. This is due to the sanitization being on by default on the executors.
Since edu-hub is only meant to be used to solve course exercises, we are not planning to disable sanitization on its executor.

Thank you for your understanding!

Cheers,
Emilio

3 Likes

Thank you @emilio_s
I now fully understand the purpose of sanitization. :wink: :hugs:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.