Akmal Dira
Akmal Dira
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Akmal Dira on 8/14/2024 in #questions
Everyone help me, how to handle server component error?
Code:
import { api, HydrateClient } from "@/trpc/server";
import { columns } from "./columns";
import { DataTable } from "./data-table";

export default async function SourcePage() {
const sources = await api.source.getAll();
// Sources will throwing an error (bad request, unauthorized, forbidden, etc)
return (
<HydrateClient>
<div className="">
<h1>Source Page</h1>
<DataTable columns={columns} data={sources} />
</div>
</HydrateClient>
);
}
import { api, HydrateClient } from "@/trpc/server";
import { columns } from "./columns";
import { DataTable } from "./data-table";

export default async function SourcePage() {
const sources = await api.source.getAll();
// Sources will throwing an error (bad request, unauthorized, forbidden, etc)
return (
<HydrateClient>
<div className="">
<h1>Source Page</h1>
<DataTable columns={columns} data={sources} />
</div>
</HydrateClient>
);
}
If i create error.tsx in that route, on production i cant see the original error message
2 replies
TtRPC
Created by Akmal Dira on 8/11/2024 in #❓-help
How to add signal on mutateAsync?
const stream = await ask.mutateAsync(data);
const stream = await ask.mutateAsync(data);
i want to parse signal there
2 replies
TtRPC
Created by Akmal Dira on 8/10/2024 in #❓-help
createTRPCReact call 3 time on error
No description
2 replies
RRailway
Created by Akmal Dira on 3/30/2024 in #✋|help
Team project, but cost x2
No description
5 replies
RRailway
Created by Akmal Dira on 3/30/2024 in #✋|help
Unable to transfer project from different team
No description
3 replies
RRailway
Created by Akmal Dira on 2/12/2024 in #✋|help
PGVector on railway
i want to deploy pgvector image on railway (https://hub.docker.com/r/ankane/pgvector) but after i connect volume, my service got error like this
initdb: detail: It contains a lost+found directory, perhaps due to it being a mount point.
initdb: hint: Using a mount point directly as the data directory is not recommended.
Create a subdirectory under the mount point.
initdb: detail: It contains a lost+found directory, perhaps due to it being a mount point.
initdb: hint: Using a mount point directly as the data directory is not recommended.
Create a subdirectory under the mount point.
any solution for this image?
6 replies
RRailway
Created by Akmal Dira on 1/12/2024 in #✋|help
Rabbit MQ Management Panel
How to open rabbit mq management panel based from this template? https://railway.app/template/0ELOuE Thanks
19 replies
RRailway
Created by Akmal Dira on 9/19/2023 in #✋|help
save file on file system not found
No description
38 replies
RRailway
Created by Akmal Dira on 8/11/2023 in #✋|help
can we jump into root folder when service is running?
i want to backup public file on my root project
20 replies