razzi
razzi
DDeno
Created by bera.fun on 1/12/2024 in #help
When I use deno run I get this error: error : Permission denied (os error 13)
Since the error is coming from the caches directory, I'd try clearing your cache by removing the folder and trying again
2 replies
DDeno
Created by tavanogui on 1/8/2024 in #help
How can I access req object inside a render() function from fresh plugin?
Could you add some more information like the fresh plugin so we can get a better idea of the use case?
11 replies
DDeno
Created by tavanogui on 1/8/2024 in #help
How can I access req object inside a render() function from fresh plugin?
I'd get what you need from the request and put it in app state, then pass the relevant app state thru to the render
11 replies
DDeno
Created by jcayzac on 1/5/2024 in #help
std/http/setCookie doesn't work?
(as a workaround)
7 replies
DDeno
Created by jcayzac on 1/5/2024 in #help
std/http/setCookie doesn't work?
That is indeed weird behavior, however you can pass multiple cookies using the Headers constructor: https://deno.land/std@0.211.0/http/cookie.ts?s=getSetCookies#Examples
const headers = new Headers([
["Set-Cookie", "lulu=meow; Secure; Max-Age=3600"],
["Set-Cookie", "booya=kasha; HttpOnly; Path=/"],
]);
const headers = new Headers([
["Set-Cookie", "lulu=meow; Secure; Max-Age=3600"],
["Set-Cookie", "booya=kasha; HttpOnly; Path=/"],
]);
7 replies
DDeno
Created by smail on 1/4/2024 in #help
drizzle orm for deno and sqlite?
Looks like there's still this open issue from the drizzle-orm side as well https://github.com/drizzle-team/drizzle-orm/issues/252
5 replies
DDeno
Created by Asaf on 1/4/2024 in #help
deployctl error: TypeError: request or response body error
I noticed this line in the build
Uploading all files from the current dir
so maybe it's other files that are the problem? In my case I only have one file with the js you posted
4 replies
DDeno
Created by Asaf on 1/4/2024 in #help
deployctl error: TypeError: request or response body error
Mine spun for a few seconds but it eventually did deploy https://healthy-whale-46-n379ew7zht5s.deno.dev/
4 replies
DDeno
Created by TangJieHao on 1/4/2024 in #help
compile to target, 'unzip' not found.
I notice the error message is in cli/tools/upgrade.rs in deno, so maybe if you upgrade the deno executable manually by uninstalling and reinstalling it will go away If the error persists after a reinstall, you might want to make a minimallu reproducible build example and post it as a github issue (or here)
5 replies
DDeno
Created by pihentagy on 1/2/2024 in #help
get hours & minutes in a specific timezone
I think date-fns can help you here: see the examples on https://date-fns.org/v3.0.6/docs/Time-Zones
6 replies
DDeno
Created by katayama8000 on 1/3/2024 in #help
How to format on save with devcontainer
Check the documentation here: https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno#formatting In particular, note that their example puts the default formatter under the "[typescript]" key
5 replies
DDeno
Created by π on 1/4/2024 in #help
Trouble with Deno imports
That appears to be missing the version, and thus returns the documentation rather than the function. Try this: import * as denoDom from "https://deno.land/x/deno_dom@v0.1.43/deno-dom-wasm.ts";
8 replies
DDeno
Created by Narigo on 1/4/2024 in #help
Recommendations for interacting with Excel sheets (.xlsx) and GraphQL?
If you're set on using JavaScript, you may have success with a similar DataFrame library such as Danfo.js: https://danfo.jsdata.org/api-reference/input-output/danfo.read_excel
5 replies
DDeno
Created by Narigo on 1/4/2024 in #help
Recommendations for interacting with Excel sheets (.xlsx) and GraphQL?
Using .xlsx directly is somewhat unusual; I'd recommend first importing the spreadsheet data into a relational database such as Postgresql. From there it will be easier to access from the GraphQL server. To be honest, I know this is a Deno server, but it may be easier to import xlsx data using Python and Pandas, which has methods like https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html
5 replies