tom
tom
BBuildShip
Created by tom on 11/14/2024 in #💬・general
tom - Seems my migration to v2 failed. I'm rath...
No description
15 replies
BBuildShip
Created by tom on 11/14/2024 in #💬・general
tom - Seems my migration to v2 failed. I'm rath...
Created a ticket, but forcing me to use some new app to just record a error message which tells me "failure" doesn't make a lot of sense. The fact that it works for other users and not for me, is the basis why I'm reporting it, you have to help me out here by explaining how could that justify over complicating bug reporting?
15 replies
BBuildShip
Created by tom on 11/14/2024 in #💬・general
tom - Seems my migration to v2 failed. I'm rath...
@Gaurav Chadha I don't think this reproducing this is complex, just select delete - get error - click force delete - observe that nothing happens. (Thank you for the incredibly quick response)
15 replies
BBuildShip
Created by tom on 11/14/2024 in #💬・general
tom - Seems my migration to v2 failed. I'm rath...
@Gaurav Chadha the credits are now back, but I can't seem to delete workflows anymore. Clicking on the force delete does nothing..
15 replies
BBuildShip
Created by tom on 11/14/2024 in #💬・general
tom - Seems my migration to v2 failed. I'm rath...
Thank you @Gaurav Chadha for the quick response. I'm still seeing the "you're poor" indication on UI but the API seems to work 🙂
15 replies
BBuildShip
Created by tom on 11/14/2024 in #💬・general
tom - Seems my migration to v2 failed. I'm rath...
Any news? This is definitely not what I was expecting from the v2. Seems like the credit conversion would be a key feature of the migration.
15 replies
BBuildShip
Created by tom on 11/14/2024 in #💬・general
tom - Seems my migration to v2 failed. I'm rath...
Hi, @Gaurav Chadha wrote to support. I somehow got the migration done, but now I'm getting a "no credits" error, even on v1 flows. How is this possible?
15 replies
BBuildShip
Created by tom on 11/1/2024 in #💬・general
tom - Hi, Buildship community. Can we perform a...
I was considering scenarios where you might need to investigate a specific user’s case. By including the user ID in the request, you could then search using that ID.
2 replies
BBuildShip
Created by tom on 10/17/2024 in #💬・general
tom - Encoding buffer to webP: "input too large...
Buildship earned a forever 10 on the NPS from me 🤝
12 replies
BBuildShip
Created by tom on 10/17/2024 in #💬・general
tom - Encoding buffer to webP: "input too large...
@Gaurav Chadha , @Luis you my dear sirs are my heroes! Works perfectly and also gives me the chance to learn Buildship and JS/TS more learning the code you provided! Thank you so much!
12 replies
BBuildShip
Created by tom on 10/17/2024 in #💬・general
tom - Encoding buffer to webP: "input too large...
This is what I ended up using: https://pastecode.io/s/57oruy2o (can't paste here due to message size limit), but I'm running into issues creating the temp paths. WebP conversion promise rejected: ENOENT: no such file or directory, open '/usr/src/app/bucket/builtNodes/temp/64baa5c7-7adb-451d-b2c2-f3476c4a0647.webp' Is there some docs about how to create the temp paths and I'm just missing something obvious?
12 replies
BBuildShip
Created by tom on 10/17/2024 in #💬・general
tom - Encoding buffer to webP: "input too large...
@Gaurav Chadha thank you for a quick reply. I was hoping I can blame BuildShip for my incompetence 😄 Then I'm failing for some other reason. Do you have any recommendations how to convert the images to webP? The AI suggest usings Jimp package, but it seems that there's some issue with it currently, also reported here: https://github.com/jimp-dev/jimp/issues/1350
12 replies
BBuildShip
Created by tom on 10/13/2024 in #💬・general
tom - I'm developing the web version of my Flut...
Access to fetch at 'https://storage.googleapis.com/buildship-*****/uploaded-files/***************.png' from origin 'https://*****' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.Understand this error main.dart.js:891 GET https://storage.googleapis.com/buildship-*****/uploaded-files/***************.png net::ERR_FAILED 200 (OK)
7 replies
BBuildShip
Created by tom on 10/17/2024 in #💬・general
tom - Encoding buffer to webP: "input too large...
import webp from 'webp-converter';
import fs from 'fs';
import { v4 as uuidv4 } from 'uuid';

export default async function convertToWebp({ imageBuffer }) {
let isSuccess = true;
try {
const maxBufferSize = 10485760; // 10MB

if (Buffer.byteLength(imageBuffer, 'base64') > maxBufferSize) {
throw new Error('Input buffer size exceeds the limit of 10MB.');
}

const tempFileName = `${process.env.BUCKET_FOLDER_PATH}/temp/${uuidv4()}.png`;
const outputFileName = `${process.env.BUCKET_FOLDER_PATH}/temp/${uuidv4()}.webp`;

// Write the input buffer to a temporary file
fs.writeFileSync(tempFileName, Buffer.from(imageBuffer, 'base64'));

// Convert the temporary file to WebP format
await webp.cwebp(tempFileName, outputFileName, "-q 80");

// Read the converted WebP file
const webpBuffer = fs.readFileSync(outputFileName);

// Clean up temporary files
fs.unlinkSync(tempFileName);
fs.unlinkSync(outputFileName);

return { webpBuffer: webpBuffer.toString('base64'), isSuccess };
} catch (error) {
isSuccess = false;
console.error(`WebP conversion error: ${error.message}`);
return { webpBuffer: null, isSuccess };
}
}
import webp from 'webp-converter';
import fs from 'fs';
import { v4 as uuidv4 } from 'uuid';

export default async function convertToWebp({ imageBuffer }) {
let isSuccess = true;
try {
const maxBufferSize = 10485760; // 10MB

if (Buffer.byteLength(imageBuffer, 'base64') > maxBufferSize) {
throw new Error('Input buffer size exceeds the limit of 10MB.');
}

const tempFileName = `${process.env.BUCKET_FOLDER_PATH}/temp/${uuidv4()}.png`;
const outputFileName = `${process.env.BUCKET_FOLDER_PATH}/temp/${uuidv4()}.webp`;

// Write the input buffer to a temporary file
fs.writeFileSync(tempFileName, Buffer.from(imageBuffer, 'base64'));

// Convert the temporary file to WebP format
await webp.cwebp(tempFileName, outputFileName, "-q 80");

// Read the converted WebP file
const webpBuffer = fs.readFileSync(outputFileName);

// Clean up temporary files
fs.unlinkSync(tempFileName);
fs.unlinkSync(outputFileName);

return { webpBuffer: webpBuffer.toString('base64'), isSuccess };
} catch (error) {
isSuccess = false;
console.error(`WebP conversion error: ${error.message}`);
return { webpBuffer: null, isSuccess };
}
}
Even with a filesize of 90KB, I'm getting an error of Input too large
12 replies
BBuildShip
Created by tom on 10/17/2024 in #💬・general
tom - Encoding buffer to webP: "input too large...
I might be missing some principle aspect of Buildship. I'm using the Upload File trigger, after that a node which is supposed to encode it in webP:
12 replies
BBuildShip
Created by tom on 10/13/2024 in #💬・general
tom - I'm developing the web version of my Flut...
Happy to, but I think I might need some leading-questions. I'm getting the image URL from one API request and then I call out the Image in (FlutterFlow), it uses the CachedNetworkImageProvider and I feed it the URL as param. I'm currently using a workaround prefixing the URL with corsproxy. The website is currently hosted on FlutterFlow infra.
7 replies
BBuildShip
Created by tom on 10/13/2024 in #💬・general
tom - I'm developing the web version of my Flut...
I'll update my plan if you could do it 😄
7 replies