josh
josh
CDCloudflare Developers
Created by josh on 4/8/2024 in #pages-help
Pages "Worker threw exception Error 1101"
Yeah I'm not sure what the Clerk packages use exactly, I assume they're using process for env variables... I'm pretty stumped on what to do haha
11 replies
CDCloudflare Developers
Created by josh on 4/8/2024 in #pages-help
Pages "Worker threw exception Error 1101"
Thanks, that's useful I now know it can exist! Though with Pages, I don't have a wrangler.toml file so I am unsure where I could put the flag mentioned? I'll do some Googling too
11 replies
CDCloudflare Developers
Created by josh on 4/8/2024 in #pages-help
Pages "Worker threw exception Error 1101"
Thanks for clarifying my misunderstanding <3 What route would you suggest I take to resolving the lack of process?
11 replies
CDCloudflare Developers
Created by josh on 4/8/2024 in #pages-help
Pages "Worker threw exception Error 1101"
I assume the clerk-sdk-node package uses process somewhere? And Cloudflare Pages does not hhave that. Am I right in understanding process is typically a default thing in Node, but Pages runs its "own modified version" of Node? Or at least is that the gist of it?
11 replies
CDCloudflare Developers
Created by josh on 4/8/2024 in #pages-help
Pages "Worker threw exception Error 1101"
I have tried installing the process NPM package but still have the same error
11 replies
CDCloudflare Developers
Created by josh on 4/8/2024 in #pages-help
Pages "Worker threw exception Error 1101"
Hey I think I found a way to view logs through the functions "real time logs", I now have something to look at:
"outcome": "exception",
"scriptName": "pages-worker--2373285-production",
"diagnosticsChannelEvents": [],
"exceptions": [
{
"stack": " at loadApiEnv (functionsWorker-0.9745412370800839.js:4702:7)\n at Object.get (functionsWorker-0.9745412370800839.js:4871:26)\n at node_modules/@clerk/clerk-sdk-node/dist/esm/index.mjs (functionsWorker-0.9745412370800839.js:4900:7)\n at __init (functionsWorker-0.9745412370800839.js:9:56)\n at .svelte-kit/output/server/chunks/hooks.server.js (functionsWorker-0.9745412370800839.js:4943:5)\n at __init (functionsWorker-0.9745412370800839.js:9:56)\n at functionsWorker-0.9745412370800839.js:4970:44\n at async get_hooks (functionsWorker-0.9745412370800839.js:4970:8)\n at async Server.init (functionsWorker-0.9745412370800839.js:33856:24)\n at async Object.fetch (functionsWorker-0.9745412370800839.js:33995:5)",
"name": "ReferenceError",
"message": "process is not defined",
"timestamp": 1712656221011
}
],
"logs": [],
"eventTimestamp": 1712656220994,
"outcome": "exception",
"scriptName": "pages-worker--2373285-production",
"diagnosticsChannelEvents": [],
"exceptions": [
{
"stack": " at loadApiEnv (functionsWorker-0.9745412370800839.js:4702:7)\n at Object.get (functionsWorker-0.9745412370800839.js:4871:26)\n at node_modules/@clerk/clerk-sdk-node/dist/esm/index.mjs (functionsWorker-0.9745412370800839.js:4900:7)\n at __init (functionsWorker-0.9745412370800839.js:9:56)\n at .svelte-kit/output/server/chunks/hooks.server.js (functionsWorker-0.9745412370800839.js:4943:5)\n at __init (functionsWorker-0.9745412370800839.js:9:56)\n at functionsWorker-0.9745412370800839.js:4970:44\n at async get_hooks (functionsWorker-0.9745412370800839.js:4970:8)\n at async Server.init (functionsWorker-0.9745412370800839.js:33856:24)\n at async Object.fetch (functionsWorker-0.9745412370800839.js:33995:5)",
"name": "ReferenceError",
"message": "process is not defined",
"timestamp": 1712656221011
}
],
"logs": [],
"eventTimestamp": 1712656220994,
11 replies
CDCloudflare Developers
Created by josh on 4/8/2024 in #pages-help
Pages "Worker threw exception Error 1101"
Sorry I'm not familiar with doing that. What is that and how could I do it? Is there any documentation I could read?
11 replies
CDCloudflare Developers
Created by josh on 2/18/2024 in #general-help
Using load balancing to route users to different servers
The guys over at TCPShield have helped me figure out what I was doing wrong! My problem was pointing my LB to the CNAMEs when instead I should have pointed the LB to my backend proxies, and pointed TCPShield to the LB hostname
13 replies
CDCloudflare Developers
Created by josh on 2/18/2024 in #general-help
Using load balancing to route users to different servers
So I am pretty confident that the LB is routing my connection to the fallback pool, but that leaves me with two problems. 1) I'm not sure what I'm doing wrong with Geo or Proximity routing 2) It's not actually giving me the correct Minecraft server instance, despite my connection reflecting the right one
13 replies
CDCloudflare Developers
Created by josh on 2/18/2024 in #general-help
Using load balancing to route users to different servers
No description
13 replies
CDCloudflare Developers
Created by josh on 2/18/2024 in #general-help
Using load balancing to route users to different servers
No description
13 replies
CDCloudflare Developers
Created by josh on 2/18/2024 in #general-help
Using load balancing to route users to different servers
No description
13 replies
CDCloudflare Developers
Created by josh on 2/18/2024 in #general-help
Using load balancing to route users to different servers
No description
13 replies
CDCloudflare Developers
Created by josh on 2/18/2024 in #general-help
Using load balancing to route users to different servers
No worries, will take a look at this too, thank you
13 replies
CDCloudflare Developers
Created by josh on 2/18/2024 in #general-help
Using load balancing to route users to different servers
No description
13 replies
CDCloudflare Developers
Created by josh on 2/18/2024 in #general-help
Using load balancing to route users to different servers
Thank you! I'll take a look :)
13 replies