magicseth
magicseth
CCConvex Community
Created by magicseth on 3/5/2024 in #support-community
Unexpected Database Bandwidth Usage
No description
10 replies
CCConvex Community
Created by magicseth on 2/23/2024 in #support-community
invalid id version
No description
5 replies
CCConvex Community
Created by magicseth on 2/6/2024 in #support-community
Socket backing up... Higher priority channel?
It seems like I can be driving a lot of chat over my socket, and it gets a little backed up. In my app a parent can send a remote "pause" signal to a child and their app should pause. I'm seeing it take about 10 seconds from the parent pressing pause to the kid's app reflecting it sometime. Obviously we shouldn't be saturating the socket, but is there a way to have different priority messages?
2 replies
CCConvex Community
Created by magicseth on 12/16/2023 in #support-community
npx convex deploy reports success, but functions not updating
I've just run
npx convex deploy
npx convex deploy
and it seems like it succeede:
Your prod deployment opulent-goose-254 serves traffic at:

VITE_CONVEX_URL=https://opulent-goose-254.convex.cloud

Make sure that your published client is configured with this URL (for instructions see https://docs.convex.dev/hosting)

? Do you want to push your code to your prod deployment opulent-goose-254 now? Yes
⠸ Deploying to https://opulent-goose-254.convex.cloud...
▲ [WARNING] Cannot find base config file "@vue/tsconfig/tsconfig.dom.json" [tsconfig.json]

serverextension/tsconfig.json:2:13:
2 │ "extends": "@vue/tsconfig/tsconfig.dom.json",
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
⠧ Deploying to https://opulent-goose-254.convex.cloud...
✔ Deployed Convex functions to https://opulent-goose-254.convex.cloud
Your prod deployment opulent-goose-254 serves traffic at:

VITE_CONVEX_URL=https://opulent-goose-254.convex.cloud

Make sure that your published client is configured with this URL (for instructions see https://docs.convex.dev/hosting)

? Do you want to push your code to your prod deployment opulent-goose-254 now? Yes
⠸ Deploying to https://opulent-goose-254.convex.cloud...
▲ [WARNING] Cannot find base config file "@vue/tsconfig/tsconfig.dom.json" [tsconfig.json]

serverextension/tsconfig.json:2:13:
2 │ "extends": "@vue/tsconfig/tsconfig.dom.json",
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
⠧ Deploying to https://opulent-goose-254.convex.cloud...
✔ Deployed Convex functions to https://opulent-goose-254.convex.cloud
But I don't see my newest functions when I go to the dashboard, and my production code is throwing errors because the backend isn't finding them
4 replies
CCConvex Community
Created by magicseth on 12/1/2023 in #support-community
Managing dashboard permissions
We are storing sensitive information in our db. I'd like to restrict the number of developers who have access to sensitive tables through the dashboard. And I'd also like to add auditing when a developer does use the dashboard. Is that possible with any tricks today?
10 replies
CCConvex Community
Created by magicseth on 9/26/2023 in #support-community
Debugging occasional slowness
No description
32 replies
CCConvex Community
Created by magicseth on 8/8/2023 in #support-community
HTTP returning blobs are all length 0.
I've got a proxy that was working, but now seems to not work. The server logs are printing out the correct blob size, but my browser is saying content-length = 0
const proxy = httpAction(async ({}, request) => {
// treat everything after the real domain as the url to proxy
console.log("PROXY", request.url);
let urlToCheck = new URL(request.url).pathname.slice(7);
if (urlToCheck.startsWith("//")) {
urlToCheck = "https:" + urlToCheck;
}
const url = new URL(urlToCheck);

console.log("PROXY", url);
const resp = await fetch(url);
console.log("PROXY", resp);
const blob = await resp.blob();
console.log("PROXY", blob);
// return resp;
// const body = await resp.text();
return new Response(blob, {
headers: {
"content-type": resp.headers.get("content-type") || "image/png",
"content-length": resp.headers.get("content-length") || "0",
},
status: 200,
});
});
const proxy = httpAction(async ({}, request) => {
// treat everything after the real domain as the url to proxy
console.log("PROXY", request.url);
let urlToCheck = new URL(request.url).pathname.slice(7);
if (urlToCheck.startsWith("//")) {
urlToCheck = "https:" + urlToCheck;
}
const url = new URL(urlToCheck);

console.log("PROXY", url);
const resp = await fetch(url);
console.log("PROXY", resp);
const blob = await resp.blob();
console.log("PROXY", blob);
// return resp;
// const body = await resp.text();
return new Response(blob, {
headers: {
"content-type": resp.headers.get("content-type") || "image/png",
"content-length": resp.headers.get("content-length") || "0",
},
status: 200,
});
});
4 replies
CCConvex Community
Created by magicseth on 7/31/2023 in #support-community
backfilling taking a very very long time.
dusty-caterpillar-550 is taking a very very long time doing this:
⠧ Backfilling indexes and checking that documents match your schema...
⠧ Backfilling indexes and checking that documents match your schema...
42 replies
CCConvex Community
Created by magicseth on 7/12/2023 in #support-community
Transient Error
What does Transient Error mean? Anything I can do to debug? dusty-caterpillar-550 7/12/2023, 12:40:25 PM 0ms failure Action actions/bandwidth:getNumberForKid failure Transient error while executing action 7/12/2023, 12:40:25 PM 0ms failure Action actions/newClerkUser:addNewClerkUser failure Transient error while executing action
13 replies
CCConvex Community
Created by magicseth on 6/23/2023 in #support-community
lacking environment variable yields unintuitive error
If I deploy without setting CONVEX_URL I get this: Uncaught TypeError: Cannot read properties of undefined (reading 'startsWith')
3 replies
CCConvex Community
Created by magicseth on 6/21/2023 in #support-community
can't find getFunctionName at runtime
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/convex_server.js?v=a61df928' does not provide an export named 'getFunctionName' (at convexvue.ts:8:3)
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/convex_server.js?v=a61df928' does not provide an export named 'getFunctionName' (at convexvue.ts:8:3)
12 replies
CCConvex Community
Created by magicseth on 6/21/2023 in #support-community
Error finding startswith
I'm running npx convex dev:
(base) sethraphael@Seths-MBP padtime % npx convex dev
✖ Error: Unable to push deployment config to https://dusty-caterpillar-550.convex.cloud
400 Bad Request: InvalidModules: Loading the pushed modules encountered the following
error:
Failed to analyze _deps/node/EXWHTTJC.js: Cannot read properties of undefined (reading 'startsWith')
(base) sethraphael@Seths-MBP padtime % npx convex dev
✖ Error: Unable to push deployment config to https://dusty-caterpillar-550.convex.cloud
400 Bad Request: InvalidModules: Loading the pushed modules encountered the following
error:
Failed to analyze _deps/node/EXWHTTJC.js: Cannot read properties of undefined (reading 'startsWith')
13 replies
CCConvex Community
Created by magicseth on 6/21/2023 in #support-community
help updating Vue Client?
I'm trying to update my vue client to .17 and I'm getting a little lost in the Typescript VarArgs department. Anyone available to help me power through?
2 replies
CCConvex Community
Created by magicseth on 6/21/2023 in #support-community
Occasional failed to parse URL running from the web function runner
On my dev server: dusty-caterpillar-550 I haven't upgraded yet. Sometimes it works, sometimes I get: info 'classifyWebsite2 called' 'https://www.puzzle-words.com/boggle-4x4/' failure Failed to parse URL from undefined/api/mutation
3 replies
CCConvex Community
Created by magicseth on 6/7/2023 in #support-community
Cannot connect to dashboard on Starbucks network
FYI:
useThrowIfMountedLongerThan.ts:11 Uncaught Error: Loading up for 5 seconds, something is probably wrong
at useThrowIfMountedLongerThan.ts:11:13
at r (helpers.js:90:17)
(anonymous) @ useThrowIfMountedLongerThan.ts:11
r @ helpers.js:90
setTimeout (async)

value @ router.js:544
p.forEach.n.<computed> @ router.js:143
(anonymous) @ useTableMetadata.tsx:39
v @ DataSidebar.tsx:33
onClick @ DataSidebar.tsx:194
$e @ react-dom.production.min.js:52
Ye @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
Nr @ react-dom.production.min.js:100
Tr @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
Ie @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Fr @ react-dom.production.min.js:105
Jt @ react-dom.production.min.js:75
Zt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ql @ react-dom.production.min.js:122
Me @ react-dom.production.min.js:292
Xt @ react-dom.production.min.js:73
r @ helpers.js:90
09:08:27.697 instrument.js:108 WebSocket reconnected
useThrowIfMountedLongerThan.ts:11 Uncaught Error: Loading up for 5 seconds, something is probably wrong
at useThrowIfMountedLongerThan.ts:11:13
at r (helpers.js:90:17)
(anonymous) @ useThrowIfMountedLongerThan.ts:11
r @ helpers.js:90
setTimeout (async)

value @ router.js:544
p.forEach.n.<computed> @ router.js:143
(anonymous) @ useTableMetadata.tsx:39
v @ DataSidebar.tsx:33
onClick @ DataSidebar.tsx:194
$e @ react-dom.production.min.js:52
Ye @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
Nr @ react-dom.production.min.js:100
Tr @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
Ie @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Fr @ react-dom.production.min.js:105
Jt @ react-dom.production.min.js:75
Zt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ql @ react-dom.production.min.js:122
Me @ react-dom.production.min.js:292
Xt @ react-dom.production.min.js:73
r @ helpers.js:90
09:08:27.697 instrument.js:108 WebSocket reconnected
6 replies
CCConvex Community
Created by magicseth on 6/2/2023 in #support-community
WebSocket closed unexpectedly.
I'm seeing some internal errors in the browser console, that don't show up in the web dashboard WebSocket closed unexpectedly with code 1011: InternalServerError: Your request couldn't be completed. Try again later. ws.onclose @ web_socket_manager.ts:221 19:00:05.806
9 replies
CCConvex Community
Created by magicseth on 6/1/2023 in #support-community
Random errors with empty files
Frequently I end up with an empty file in my convex directory that I'm about to implement, and get distracted. If it stays there, typescript gets confused, and everything breaks. Same thing happens if i have a json file in there. Better error messaging here would be helpful! Also I sometimes see this:
✔ 03:21:57 Convex functions ready! (14.5s)
Error: Unable to push deployment config to https://dusty-caterpillar-550.convex.cloud
500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later.
Failed due to network error, retrying in 325.05ms...
✔ 03:21:57 Convex functions ready! (14.5s)
Error: Unable to push deployment config to https://dusty-caterpillar-550.convex.cloud
500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later.
Failed due to network error, retrying in 325.05ms...
But it's because I have an error in my code. It doesn't seem like that is an InternalServerError to me.
2 replies
CCConvex Community
Created by magicseth on 6/1/2023 in #support-community
setTimeout not found, if you're not using node. Error could be made more clear to "use node"
In my case I had "use node;" at the top of my file 😦
6 replies
CCConvex Community
Created by magicseth on 6/1/2023 in #support-community
EMfile error
I'm seeing a new error using the run function dashboard:
request to https://dusty-caterpillar-550.convex.cloud/api/actions/query failed, reason: connect EMFILE 34.207.37.34:443 - Local (undefined:undefined)
at async <anonymous> (../../convex/wonderSearch/injestGames.ts:23:16)
request to https://dusty-caterpillar-550.convex.cloud/api/actions/query failed, reason: connect EMFILE 34.207.37.34:443 - Local (undefined:undefined)
at async <anonymous> (../../convex/wonderSearch/injestGames.ts:23:16)
11 replies
CCConvex Community
Created by magicseth on 5/24/2023 in #support-community
No way to tell if functions are uploading from npx convex dev
When it's uploading there is a flash of new text, which then disappears, until it finally succeeds. This makes it challenging to know whether the last terminal output is from this deployment or the previous.
3 replies