Lami
Lami
Explore posts from servers
CDCloudflare Developers
Created by Lami on 4/15/2025 in #workers-help
Error 1102: Worker exceeded resource limits
No description
1 replies
CDCloudflare Developers
Created by Lami on 4/8/2025 in #workers-help
Issue with SSO Authentication Using OpenNext and Better-Auth
I have deployed a Next.js application using OpenNext and implemented SSO authentication with Better-Auth and Prisma. It works correctly in my local environment, but when I run the application with the "preview" and "deploy" commands, I encounter a 500 error on the request:
POST https://x.x.workers.dev/api/auth/sign-in/social
POST https://x.x.workers.dev/api/auth/sign-in/social
Enabling the Workers logs allowed me to see the error message, which is:
# SERVER_ERROR: Error: [unenv] fs.readdir is not implemented yet!
# SERVER_ERROR: Error: [unenv] fs.readdir is not implemented yet!
However, I am unable to determine where fs.readdir is being used, as I do not directly use the fs package in my code. It appears that one of my dependencies is calling fs.readdir. Could someone advise on how to identify the package or code that is invoking fs.readdir and provide any suggestions for working around or resolving this error?
1 replies
SIASapphire - Imagine a Framework
Created by Lami on 1/19/2025 in #sapphire-support
Freeze on await client.login()
import './lib/setup';

import { LogLevel, SapphireClient } from '@sapphire/framework';
import { GatewayIntentBits } from 'discord.js';

const client = new SapphireClient({
defaultPrefix: '!',
caseInsensitiveCommands: true,
logger: {
level: process.env.NODE_ENV === 'development' ? LogLevel.Debug : LogLevel.Info
},
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMessageReactions
],
loadMessageCommandListeners: true
});

client.on('debug', console.log);

const main = async () => {
try {
client.logger.info('Logging in');
await client.login();
client.logger.info('logged in');
} catch (error) {
client.logger.fatal(error);
await client.destroy();
process.exit(1);
}
};

void main();
import './lib/setup';

import { LogLevel, SapphireClient } from '@sapphire/framework';
import { GatewayIntentBits } from 'discord.js';

const client = new SapphireClient({
defaultPrefix: '!',
caseInsensitiveCommands: true,
logger: {
level: process.env.NODE_ENV === 'development' ? LogLevel.Debug : LogLevel.Info
},
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMessageReactions
],
loadMessageCommandListeners: true
});

client.on('debug', console.log);

const main = async () => {
try {
client.logger.info('Logging in');
await client.login();
client.logger.info('logged in');
} catch (error) {
client.logger.fatal(error);
await client.destroy();
process.exit(1);
}
};

void main();
[0:38:39] File change detected. Starting incremental compilation...

[0:38:39] Found 0 errors. Watching for file changes.


> node dist/index.js

2025-01-20 00:38:41 - INFO - Logging in
[0:38:39] File change detected. Starting incremental compilation...

[0:38:39] Found 0 errors. Watching for file changes.


> node dist/index.js

2025-01-20 00:38:41 - INFO - Logging in
The log before firing the login function is displayed, but after that nothing happens. I have set up a debug log, but nothing is displayed.
152 replies
DDeno
Created by Lami on 12/31/2023 in #help
Deployctl, error: Uncaught (in promise) NotFound: Failed to spawn 'start': program not found
> deployctl logs a
i Provisioning a new access token...
i Authorization URL: https://dash.deno.com/signin/cli?claim_challenge=example
error: Uncaught (in promise) NotFound: Failed to spawn 'start': program not found
.spawn()
^
at spawnChildInner (ext:runtime/40_process.js:164:17)
at spawnChild (ext:runtime/40_process.js:185:10)
at Command.spawn (ext:runtime/40_process.js:453:12)
at provision (https://deno.land/x/[email protected]/src/utils/access_token.ts:63:8)
at eventLoopTick (ext:core/01_core.js:181:11)
at async Object.provision (https://deno.land/x/[email protected]/src/utils/access_token.ts:13:19)
at async API.#request (https://deno.land/x/[email protected]/src/utils/api.ts:99:44)
at async API.#requestJson (https://deno.land/x/[email protected]/src/utils/api.ts:121:17)
at async default (https://deno.land/x/[email protected]/src/subcommands/logs.ts:112:27)
at async https://deno.land/x/[email protected]/deployctl.ts:93:5
> deployctl logs a
i Provisioning a new access token...
i Authorization URL: https://dash.deno.com/signin/cli?claim_challenge=example
error: Uncaught (in promise) NotFound: Failed to spawn 'start': program not found
.spawn()
^
at spawnChildInner (ext:runtime/40_process.js:164:17)
at spawnChild (ext:runtime/40_process.js:185:10)
at Command.spawn (ext:runtime/40_process.js:453:12)
at provision (https://deno.land/x/[email protected]/src/utils/access_token.ts:63:8)
at eventLoopTick (ext:core/01_core.js:181:11)
at async Object.provision (https://deno.land/x/[email protected]/src/utils/access_token.ts:13:19)
at async API.#request (https://deno.land/x/[email protected]/src/utils/api.ts:99:44)
at async API.#requestJson (https://deno.land/x/[email protected]/src/utils/api.ts:121:17)
at async default (https://deno.land/x/[email protected]/src/subcommands/logs.ts:112:27)
at async https://deno.land/x/[email protected]/deployctl.ts:93:5
When I try to check the Deno Deploy logs from Deployctl, an error occurs and I cannot log in.
> deno --version
deno 1.39.1 (release, x86_64-pc-windows-msvc)
v8 12.0.267.8
typescript 5.3.3
> deno --version
deno 1.39.1 (release, x86_64-pc-windows-msvc)
v8 12.0.267.8
typescript 5.3.3
2 replies