
google-auth-library (bad request) and im trying to figure out whygoogle-auth-library are the same, envs loaded)
/accounts/{account_id}/rum stuff, and can't figure out the token permission needed for the life of me... tried 20 or so account-level permissions so far and none work.
import { cache } from "react";
export const getSettings = cache(async (): Promise<Settings | null> => {
try {
const response = await fetch(
"https://cdn.[CENSORED]",
{
cache: "no-store" // Keep this for Next.js 15 compatibility
}
);
if (!response.ok) {
throw new Error(`Failed to fetch settings: ${response.status}`);
}
const settings: Settings = await response.json();
return settings;
} catch (err) {
console.error("Error loading settings:", err);
return null;
}
});google-auth-librarygoogle-auth-library✘ [ERROR] service core:user:meetup-worker: Uncaught Error: Dynamic require of "util" is not supported
at null.<anonymous> (index.js:12:9)
at null.<anonymous> (index.js:192227:18) in
../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
at null.<anonymous> (index.js:191586:51) in __require2
at null.<anonymous> (index.js:202015:26) in
../../node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/form_data.js
at null.<anonymous> (index.js:191586:51) in __require2
at null.<anonymous> (index.js:202335:33) in
../../node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/node/classes/FormData.js
at null.<anonymous> (index.js:191583:57) in __init
at null.<anonymous> (index.js:202463:5) in
../../node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js
at null.<anonymous> (index.js:191583:57) in __init
at null.<anonymous> (index.js:202495:5) in
../../node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js/accounts/{account_id}/rumtools: [
{
name: "getClassRoster",
description: "Returns all student objects for that class",
parameters: {
type: "object",
properties: {
grade: {
type: "integer",
description: "The grade (e.g. 10) of the needed class. Between 1 and 12, inclusive."
},
classLetter: {
type: "string",
description: "The letter (e.g. A) of the needed class. Between A and Z, inclusive."
}
},
required: ["grade", "classLetter"]
}
}
][wrangler-UserWorker:error] AiError: 8001: Invalid input
at Ai._parseError (cloudflare-internal:ai-api:176:24)
at async Ai.run (cloudflare-internal:ai-api:154:19)
at async runWorker (file:///home/proman4713/JavaScript%20Projects/MawjoodAPI/src/index.js:50:20){"httpCode":400,"internalCode":8001,"message":"AiError: AiError: Invalid input (95e650b5-30fd-461e-a800-95d18c5295ef)","name":"AiError","skipSentry":true,"description":"Invalid input"}