R
Railwayβ€’13mo ago
Tyron

Parse Error formidable librairy

Im still facing this issue with Strapi, im in pro plan The request is about, the fact that im sending multiple photo and sometimes with that multiple video in a formData Is this related to my code or the fact that too many data are send ? thx in advance!
No description
21 Replies
Percy
Percyβ€’13mo ago
Project ID: N/A
Tyron
Tyronβ€’13mo ago
N/A
Adam
Adamβ€’13mo ago
this is a code error, nothing to do with Railway itsself
Brody
Brodyβ€’13mo ago
you've said in previous threads that you get this error with all different kinds of file sizes, so I doubt you are running into the 5 minute max POST time for railway, and thalles suggested you look into returning a signed S3 url for the client to upload the file directly to, and I agree that you should definitely look into doing just that
Tyron
Tyronβ€’13mo ago
Yes i just found out what the real issue is : Too many files in the POST and its take to much time so the server reject the request so it fail One thing, i have already data in my database and a S3 bucket for all my photos and videos I need to save my database to prevent lost all the data Do you have a documentation on how to do that without lost every data already in it
Brody
Brodyβ€’13mo ago
you just wanna backup your database on a set schedule?
Tyron
Tyronβ€’13mo ago
if the set schedule prevent me to go on AWS save manually so yes, i wanna do that
Brody
Brodyβ€’13mo ago
I think this is what you are asking for? https://blog.railway.app/p/automated-postgresql-backups
Tyron
Tyronβ€’13mo ago
Ok thx, if i do that will i lost my current data ? And since i already have a bucket for my photo and video, do i need to close it ?
Brody
Brodyβ€’13mo ago
no, you create a new bucket specifically for the backups this is all assuming you are asking about backing up your database
Tyron
Tyronβ€’13mo ago
Ok got it ! thx again brody !
Brody
Brodyβ€’13mo ago
no problem πŸ™‚
Tyron
Tyronβ€’13mo ago
OK do everything on the docs (PS: the docs need a little update but its manageable) After clicking on Run now => nothing happening, no error, everything is OK but see no change on AWS
No description
No description
Brody
Brodyβ€’13mo ago
that blog post i linked does not tell you to use railway's native cron internally it uses node cron
Tyron
Tyronβ€’13mo ago
Ok, i remove the config cron in the settings and change the cron variable in Variable tab How can i manually trigger a save of the database ?
No description
No description
Brody
Brodyβ€’13mo ago
it doesnt run a backup on start by default, but you can enable that with a RUN_ON_STARTUP service variable set to true
Tyron
Tyronβ€’13mo ago
ok gonna try that, Thx!
Tyron
Tyronβ€’13mo ago
It work like a charm, thx About the error show in the picture, should i do something or it's to the railway team to maange that ?
No description
Brody
Brodyβ€’13mo ago
its open source, if you wanna update the aws sdk to v3 railway would happily accept a pr
Tyron
Tyronβ€’13mo ago
I accept the challenge, thx again for your time
Brody
Brodyβ€’13mo ago
no problem πŸ™‚
Want results from more Discord servers?
Add your server