DesertRodent
08/10/2022, 1:01 PMboeledi
08/10/2022, 1:02 PMsupabase functions deploy hello-world
Bundling hello-world
Error: Failed to create a new Function on the Supabase project: {"id":"fe576b3d-3592-4efd-abe7-fbdde8c46a95","slug":"hello-world","name":"hello-world","version":1,"status":"ACTIVE","created_at":1660136284125,"updated_at":1660136284125,"verify_jwt":true}
When I have a look at the Dashboard, the Function is there but when I try to invoke it I receive
502: Bad Gateway (DEPLOYMENT_FAILED)
The deployment failed while serving the request.
Would you have an idea what I am doing wrong? Thankssidharth28
08/10/2022, 1:02 PMsidharth28
08/10/2022, 1:07 PMpaddyfink | Pesabooks
08/10/2022, 1:43 PM502: Bad Gateway (DEPLOYMENT_FAILED)
The deployment failed while serving the request.
drewbie
08/10/2022, 1:50 PMpocin
08/10/2022, 3:01 PM1234-5678.png
would be in
public/raw/1234-5678.png
public/32x32/1234-5678.png
public/256x256/1234-5678.png
etc?
This requires managing some extra infra, which i'd like to avoid.
The only alternative I can think of would be using edge functions to manage the image uploads and process the different resolutions on upload.
I dont think it's good idea to do this in triggers even if i managed to write this code using pl/python procedure, right?knoppoly
08/10/2022, 3:13 PMKellen Mace
08/10/2022, 3:34 PMJosué Ayala
08/10/2022, 3:44 PMzeedee
08/10/2022, 3:48 PMHEAVYPOLY
08/10/2022, 3:50 PMKickNext
08/10/2022, 4:14 PMKariak
08/10/2022, 5:11 PM{
"StadiumID": 46,
"Name": "Tom Benson Hall of Fame Stadium",
"City": "Canton",
"State": "OH",
"Country": "USA",
"Capacity": 23000,
"PlayingSurface": "Artificial",
"GeoLat": 40.819906,
"GeoLong": -81.398157,
"Type": "Outdoor"
}
After I import the CSV it looks like this in the column:
"{\"StadiumID\": 46, \"Name\": \"Tom Benson Hall of Fame Stadium\", \"City\": \"Canton\", \"State\": \"OH\", \"Country\": \"USA\", \"Capacity\": 23000, \"PlayingSurface\": \"Artificial\", \"GeoLat\": 40.819906, \"GeoLong\": -81.398157, \"Type\": \"Outdoor\"}"
I'm unable to use the data in that column when it's formatted this way.fernandops26
08/10/2022, 6:48 PMapp.get(
"/auth/github/callback",
passport.authenticate("github", { session: false }),
(req: any, res) => {
res.redirect(`http://localhost:54321/auth/${req.user.accessToken}`);
}
);
Here, extension side, command to call to the main server and get access token, after that, they use it to access to every protected route
const app = polka();
app.get(`/auth/:token`, async (req, res) => {
const { token } = req.params;
if (!token) {
res.end(`<h1>something went wrong</h1>`);
return;
}
await TokenManager.setToken(token);
fn();
res.end(`<h1>auth was successful, you can close this now</h1>`);
(app as any).server.close();
});
app.listen(54321, (err: Error) => {
if (err) {
vscode.window.showErrorMessage(err.message);
} else {
vscode.commands.executeCommand(
"vscode.open",
vscode.Uri.parse(`${apiBaseUrl}/auth/github`)
);
}
});
But I am a little confused about how I should abort it using supabase. 😕TARS
08/10/2022, 8:03 PMconst fetchHosts = async () => {
setLoading(true);
let { data: hosts, error } = await supabase
.from('hosts')
.select('*')
.eq('status', selectedValues.name);
if (hosts) {
console.log(selectedValues);
setHosts(hosts);
setLoading(false);
}
};
useEffect(() => {
fetchHosts();
}, [selectedValues]);
So it's working when I wanna fetch data with special statuses, but now I also have a selection that is 'all objects', how will I do this? And also in the future I might wanna put in even more filters. Like status unhandeled in a special city etc. Can I still use the supabase cli for this? And if yes, can someone give me a hint on how to start thinking about this.bhaskar
08/10/2022, 9:16 PMsupabase.auth.setAuth(token)
. How do i get the user id of the admin ?voth
08/11/2022, 2:18 AMsupabase db commit create_employees
to create a new migration. This commit
command isn't available on the version of the CLI I'm using (0.37.1).
Has anyone else encountered this? how did you resolve it?hartem
08/11/2022, 3:10 AMNanoBit
08/11/2022, 7:56 AMNeedle
08/11/2022, 8:44 AMwiesson
08/11/2022, 9:22 AMmy-random-previewfeature-my-app.vercel.app
to the whitelisted domains so that I can login with google to my preview features. Does anyone know how it works? It used to be like that the redirect URL needs matched exactly?
Also my supabase UI looks different as shown here -> https://mobile.twitter.com/supabase/status/1539561445414805506hanako
08/11/2022, 9:52 AMfelixthehat
08/11/2022, 10:22 AMTwisted Chaz
08/11/2022, 10:24 AMTheOnlyTails
08/11/2022, 11:18 AMDesertRodent
08/11/2022, 12:36 PMNeedle
08/11/2022, 1:02 PMNeedle
08/11/2022, 1:02 PMOlyno
08/11/2022, 1:14 PM