herkulessi
Set-Cookie - Header shows as "deleted"
I am trying to use deno to script/scrape a website.
I can successfully log in to the site (using fetch), however the Headers do seem to get redacted. Instead of seeing a long token, I only get "deleted". the Cookie is set to expire one second after the epoch (is that influences anything) and another Cookie shows up completely fine.
Without the cookie I can't take any further actions on the site, because the Cookie in question contains the Session Cookie.
9 replies
Hashbang with TS file (without .ts extension)
Hi y'all, I have a few convenience scripts written in Typescript for Deno that all have a wrapper script. I wanted to swap those for simple symplinks to the code, which in turn contains a Hashbang but hit a dead end, because deno seems to assume extensionless files are JS files. Is there a way to tell Deno in the comandline, that it is dealing with a typescript file? Or do I have to either use .ts for all my scripts or keep copying the same wrapper scripts again and again and again?
3 replies
Run Deno on Linux without /proc mounted
I have a few automatic scripts using deno to run stuff, and wanted to migrate them to another Machine. For various reasons deno doesn't run on the new Host (mainly missing Libraries) so I wanted to run deno in a chroot. However that fails, because /proc is not mounted in the chroot and for some reason deno seems to rely on /proc/self/exe. Is there a way to not need that? Or do I need to mount /proc in the chroot?
4 replies