AirmanEpic
AirmanEpic
Explore posts from servers
DDeno
Created by AirmanEpic on 11/5/2024 in #help
Next throwing an error that seems to be "Deno not defined"
Weird issue here, but I'm probably misusing the client/server functions somewhere. Anyway, I have this function "getScores"
"use server"

import config from '../config.json' with { type: "json" };

export async function getScores(){
let scoresPath = `${config.folder}/scores.hth`;
let scores:{[fileName:string]:number} = {};
try{
let data = await Deno.readTextFile(scoresPath);
scores = JSON.parse(data);
}
catch(err){
console.log("13")
console.error("Error in scores file: ", err)
throw new Error("Error reading scores file");
}
return {scores: scores, path: config.folder};
}
"use server"

import config from '../config.json' with { type: "json" };

export async function getScores(){
let scoresPath = `${config.folder}/scores.hth`;
let scores:{[fileName:string]:number} = {};
try{
let data = await Deno.readTextFile(scoresPath);
scores = JSON.parse(data);
}
catch(err){
console.log("13")
console.error("Error in scores file: ", err)
throw new Error("Error reading scores file");
}
return {scores: scores, path: config.folder};
}
and seems to perform alright the first time it's called. However, my code calls for a reload, and getScores happens after the reload. This causes the nextjs process to actually crash, which I've never seen before. The errors:
2 replies
DDeno
Created by AirmanEpic on 11/4/2024 in #help
VSC having issues with NextJS using Deno
No description
5 replies
PPrisma
Created by AirmanEpic on 7/28/2024 in #help-and-questions
Prisma is throwing __filename is not defined specifically in SST cron jobs
This is a weird issue, when I'm running prisma through SST's cron job, which I need in order to do database processing tasks, I get an error that says
__filename is not defined
and the cron job fails. I've tried a workaround with
import type { PrismaClient as PrismaClientType } from '@prisma/client';
import { createRequire } from 'module';

const require = createRequire(import.meta.url ?? __filename);
const { PrismaClient: PrismaClientImpl } = require('@prisma/client');
export class PrismaClient extends (PrismaClientImpl as typeof PrismaClientType) {}
import type { PrismaClient as PrismaClientType } from '@prisma/client';
import { createRequire } from 'module';

const require = createRequire(import.meta.url ?? __filename);
const { PrismaClient: PrismaClientImpl } = require('@prisma/client');
export class PrismaClient extends (PrismaClientImpl as typeof PrismaClientType) {}
but unfortunately this doesn't seem to disconnect the prisma client ever or something, and so I get errors down the line because there are too many prisma clients connected.
11 replies
RRCRat Rig Community [Unofficial]
Created by rival-black on 9/15/2023 in #fix-my-printer
servo short error while using correct cable ends
No description
21 replies
RRCRat Rig Community [Unofficial]
Created by fair-rose on 1/29/2023 in #ratos-support
no trigger after full movement
This is an interesting problem in alpha 4. Using an skr mini e3 on an ender 3. My rotation distance has been halved on my z axis for context. For some reason, on some prints, the z axis will only move down a tiny amount and they say that there was no trigger.
7 replies
RRCRat Rig Community [Unofficial]
Created by conscious-sapphire on 1/27/2023 in #fix-my-printer
Print is taller than it's supposed to be
Weird bug here - I've had to reduce the flow by 50% and once that's done, the print is nearly twice as tall as it should be. Is it just that my z and e steps are doubled? Using an Ender 3 that thinks it's a VMinion thanks to the SKR Mini.
2 replies
RRCRat Rig Community [Unofficial]
Created by absent-sapphire on 1/25/2023 in #fix-my-print
Support impossible to remove
So I don't know what's going on with my print or printer but it seems that no matter what I do, the print is always stuck to the supports like glue. I've cut myself several times trying to take it off. On my Ender 3 it's easy as hell but on my Ratrig I need a knife and those stab-proof gloves. My cura settings: https://i.gyazo.com/45bcb89d49cd0c65aa1d97b65d93c9bb.png the area in support also looks really horrid even with the supports impossible to remove. So I have no idea what's going on.
7 replies
RRCRat Rig Community [Unofficial]
Created by fascinating-indigo on 1/20/2023 in #fix-my-print
Weird layer lines in print - overextrusion?
No description
5 replies
RRCRat Rig Community [Unofficial]
Created by genetic-orange on 1/16/2023 in #ratos-support
VMinion 3 scraping bed after homing
Hey guys, I have a V-Minion based on Ender 3. After the homing procedure, the nozzle, at bed height, shoots straight towards the purge point without lifting at all, often scraping the bed. Assuming the bed is level (it isn't, but I would have expected the machine to compensate for that), is there a way to make it lift up juuuuuust a hair before going back to purge strip? that way there's no risk of it scraping the bed
61 replies
RRCRat Rig Community [Unofficial]
Created by other-emerald on 1/13/2023 in #fix-my-printer
Z probe as Z endstop
Hey guys, I have an inductive toolhead with it's own amplifier/inverter box (I think! https://www.amazon.com/gp/product/B07K82KZZM/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1) I'm trying to get it to work with my VMinion setup (SKR Mini E3 30). However, the probe end only has 2 wires, not 3 like you'd find on a normal inductive probe. Assuming I want to use all the hardware as is including the 2 prong pin, where do I plug it in so that it's recognized (I mean to say I put it into the z-endstop pins as I had on my ender 3 and RatOS refuses to see the endstop as anything other than open)? Or do I just need to go through each possible config in the z-probes?
2 replies
RRCRat Rig Community [Unofficial]
Created by correct-apricot on 1/12/2023 in #ratos-support
RatOS on SKR Mini
Hey guys, I'm trying to get my Ender 3 to think it's a V-Minion. Following someone's instructions here a while back, I got an SKR mini board for the ender 3 and have installed it. However, I don't see the SKR mini on the list of accepted boards. I assume this is, of course, because it's not supported but I wanted to double check before I give up on RatOS. @miklschmidt @blacksmithforlife you guys know anything about it?
8 replies