wminor
wminor
Explore posts from servers
CCConvex Community
Created by wminor on 2/18/2025 in #support-community
Trouble setting up convex-r2
I'm trying to set up convex-r2, following this guide: https://www.convex.dev/components/cloudflare-r2 I'm getting this error from convex dev:
Error fetching POST https://combative-opossum-472.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze file_storage.js: Uncaught Error: R2 configuration is missing required fields.
R2_BUCKET, R2_ENDPOINT, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY
at new R2 (../node_modules/@convex-dev/r2/src/client/index.ts:94:74)
at <anonymous> (../src/convex/file_storage.ts:3:38)
Error fetching POST https://combative-opossum-472.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze file_storage.js: Uncaught Error: R2 configuration is missing required fields.
R2_BUCKET, R2_ENDPOINT, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY
at new R2 (../node_modules/@convex-dev/r2/src/client/index.ts:94:74)
at <anonymous> (../src/convex/file_storage.ts:3:38)
Am I right in thinking that those logs are coming from remote execution on the convex server side? I have ensured that all of those R2_* environment variables are set on my convex project. What else could I be missing?
7 replies
TSDThe Swift Den
Created by wminor on 8/26/2023 in #swift-development
NSScreen visibleFrame / safeAreaInsets not adding up right?
I'm trying to compare visibleFrame and frame to figure out whether the dock is currently showing on a given screen. Of course, I need to account for the menubar and any inset caused by a macbook notch as part of this. However, the number I'm getting don't quite add up right! For example, on my M2 Macbook Air: frame has a height of 956 (as expected) visibleFrame has a height of 919 NSApp.mainMenu?.menuBarHeight is 36 safeAreaInsets.top is just 32 I take the maximum of the menu bar height and the notch inset height, which in this case is 36. Add 36 to the visible frame height: 36+919 = 955. But my frame is 956 high! Where's the missing point?! Is this even the right approach? Is there a better way to detect whether the dock is showing in these types of cases?
4 replies