Steps to reproduce:
- create a new val with default settings on the web ui
- clone the val with
vt clone user/val
- add this content to the file
main.ts:
function renderHtml(): string {
return `<pre>curl -X POST</pre>`;
}
- run
vt push
The command fails with a long html dump on stdout.
Notable part of it:
<header>
<h1 class="type-heading-04">403 - Forbidden</h1>
</header>
<main class="text-primary">
<div>
<p>Your request was blocked by this site's web application firewall (WAF).</p>
</div>
<div>
<p>For assistance, please contact the site owner.</p>
<p>Describe the action you were taking and include the Request ID listed below.</p>
</div>
<div class="request-id">
<p>Request ID: <code class="type-mono-01">9e07fb5e38457140</code></p>
<p>Your IP address: <code class="type-mono-01">...</code></p>
</div>
</main>
Note: If you paste the code snippet into the main.ts web editor, it will fail to save and throw an error:
Unexpected token '<', "<!DOCTYPE html>" is not valid JSON
Steps to reproduce:
vt clone user/valmain.ts:vt pushThe command fails with a long html dump on stdout.
Notable part of it:
Note: If you paste the code snippet into the main.ts web editor, it will fail to save and throw an error:
Unexpected token '<', "<!DOCTYPE html>" is not valid JSON