swipe
swipe
BBuildShip
Created by AMEERSH on 12/4/2024 in #❓・buildship-help
No-Cold Start seems not working
Are these v2 endpoints? I'm finding my v1 endpoints seem to have gotten WAY slower to reply, and the v2 endpoints. Hazarding a guess, cold start is a new "feature" that doesn't apply to v1 endpoints, but was retroactively applied? Would appreciate the clarity as well, since migrating has been a real pain.
5 replies
BBuildShip
Created by swipe on 11/14/2024 in #❓・buildship-help
Cannot migrate to 2.0!
FYI: Support team was able to fix this manually for me when I reached out to them
4 replies
BBuildShip
Created by swipe on 11/18/2024 in #❓・buildship-help
Wondering about Best Practices around error status codes.
Would love an answer to this
5 replies
BBuildShip
Created by Chris Wright | Brandmember on 11/23/2024 in #❓・buildship-help
V2 secret keys
Same question
5 replies
BBuildShip
Created by swipe on 2/20/2024 in #❓・buildship-help
Firebase complex queries (OR, AND)
@Gaurav Chadha would appreciate any suggestions
5 replies
BBuildShip
Created by swipe on 4/7/2024 in #💬・general
swipe - With BuildShip, I often run into the si...
EXPECTED: I can use the result of a node that is matched with a node in each branch. ACTUAL BEHAVIOR: It wants me to select a node from only the THEN or ELSE branch.
4 replies
BBuildShip
Created by swipe on 4/7/2024 in #💬・general
swipe - With BuildShip, I often run into the si...
No description
4 replies
BBuildShip
Created by swipe on 1/20/2024 in #💬・general
I've been playing around with the HTML
curiously, if I remove "res, req," from the params, and I comment out the lines that use it, the error goes away. I wonder if there's an issue with modifying headers using this method?
7 replies
BBuildShip
Created by swipe on 1/20/2024 in #💬・general
I've been playing around with the HTML
Yes, it's defined and passed in the test params
7 replies
BBuildShip
Created by swipe on 1/20/2024 in #💬・general
I've been playing around with the HTML
This is the code I'm working on, but it's throwing an error in test mode: import fetch from 'node-fetch'; export default async function postRequestPuppeteerStore(req, res, { htmlContent, options }) { try { const response = await fetch('https://puppeteer.buildship.run/v1/pdf', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ htmlContent, options }) }); const buffer = await response.buffer(); // Set headers to indicate the response type is a PDF res.setHeader('Content-Type', 'application/pdf'); res.setHeader('Content-Disposition', 'attachment; filename="output.pdf"'); // Send the buffer as the response res.send(buffer); } catch (error) { // Handle errors here (e.g., send a 500 server error response) res.status(500).send('Error generating PDF'); } } The error I am getting is: { "error": "Cannot destructure property 'htmlContent' of 'undefined' as it is undefined." }
7 replies
BBuildShip
Created by swipe on 1/20/2024 in #💬・general
I've been playing around with the HTML
I haven’t had much luck on this yet, definitely keen on finding out if it’s possible!
7 replies
BBuildShip
Created by swipe on 1/22/2024 in #❓・buildship-help
Get Authorization Header Node has incorrect output type
I know, that's what I'm saying - the vanilla node is configured incorrectly. It should either have the output type set to object, or the code should return a string (which would make sense). As coded, it's a broken node.
4 replies