luke
BBuildShip
•Created by Ahmad on 5/3/2024 in #💬・general
Ahmad - Bit of an emergency, I have a node that...
Something NASA does for all their code is that any loop which has an undefined iteration length they will add an extra check against an upper limit so it's impossible to infinite loop. This kind of stuff is pretty important when working on cloud infrastructure because one single infinite loop can max out your monthly allowance
20 replies
BBuildShip
•Created by luke on 3/23/2024 in #💬・general
luke - Hey I need to access the rawBody of the ...
How though... when I log them it just comes up as undefined or Object object. Could you explain what code I need to write to get the raw body?
10 replies
BBuildShip
•Created by luke on 3/23/2024 in #💬・general
luke - Hey I need to access the rawBody of the ...
@Gaurav Chadha any ideas?
10 replies
BBuildShip
•Created by luke on 3/23/2024 in #💬・general
luke - Hey I need to access the rawBody of the ...
I need to access that before it gets parsed with whatever middleware buildship is using
10 replies
BBuildShip
•Created by luke on 3/23/2024 in #💬・general
luke - Hey I need to access the rawBody of the ...
what I need is the actual raw body payload. Not the value of what;s stored in the body Here's an example of what I need formatted the way it arrives as a string
{"data":{"id":"307926","type":"subscriptions","links":{"self":"https:\/\/api.lemonsqueezy.com\/v1\/subscriptions\/307926"},"attributes":{"urls":{"customer_portal":"https:\/\/appointment.lemonsqueezy.com\/billing?expires=1711243428&test_mode=1&user=1233616&signature=49a13c5701575c0004b88a6d7a99dc209a320c3d04caf4f60a6508753bda453b","update_payment_method":"https:\/\/appointment.lemonsqueezy.com\/subscription\/307926\/payment-details?expires=1711308228&signature=a9c4c0d15a131b4e37eac1e1b83ac5ae9a73af0945e07c1e1bdf9322aa66c1ee","customer_portal_update_subscription":"https:\/\/appointment.lemonsqueezy.com\/billing\/307926\/update?expires=1711308228&user=1233616&signature=75ed3ce00177be45bfb051c90dbabaed9ea9a5b2e54b585986963a282773bcc0"},"pause":null,"status":"on_trial","end
etc. and this continues on to complete the request, I cut it off because it's too long.
10 replies
BBuildShip
•Created by luke on 3/23/2024 in #💬・general
luke - Hey I need to access the rawBody of the ...
just to add detail, not sure if you understand, what I need is the raw string of the body payload sent across. Not the parsed JSON. I need it exactly as it's sent
10 replies
BBuildShip
•Created by luke on 3/23/2024 in #💬・general
luke - Hey I need to access the rawBody of the ...
10 replies