-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "Body exceeded 1mb limit" error #274
Comments
Thanks for this @vbylen - transferring to the CLI repo so that the team can check it out! |
We have moved to execute seed sql using pgx, hence avoiding the docker api limit. Feel free to open this ticket again if the latest version doesn't work for you. |
Hello @sweatybridge, I've currently toying around with a seed file that's around 3mb which is full of mostly JSON plus a few functions for inserting. I'm running 1.8.2 and I'm getting the following error while trying to seed... I also tried to seed in the dashboard (local) but the limit there is still 1mb ( Is there another way to seed large amounts of data? Edit: I'll need to do the same in my cloud instance of supabase too. I assume the 1mb will still be an issue on that dashboard? This data is being pulled across from another platform and includes user accounts. |
🎉 This issue has been resolved in version 1.8.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi @eeston , we have made the scanner buffer size configurable. You might need to play around with buffer sizes to fit your seed file. Perhaps 5mb could be a good start SUPABASE_SCANNER_BUFFER_SIZE=5mb supabase db reset Let me know if it works for you locally.
Yes, the hosted dashboard has the same body size limit. We will look into extending the CLI to push your seed data to cloud instance using |
Fantastic...I'll test this at the weekend. Thanks for your help @sweatybridge |
Hi @sweatybridge,
Looks like I was a minor version behind. This has been addressed in 1.8.4 and works perfectly. Ta! |
I just checked with our support team. The csv upload option does not impose such size limits. You should be able to upload 3mb of seed data using it. |
The best way to seed a lot of data is through the COPY command: It looks like you've go mostly JSON data - I have a small tutorial which could help with that: |
Thanks for the info @kiwicopple. I ended up inserting the data in 5000row chunks...wasn't too much trouble. Good to know for next time though! 👍 |
Hi guys, sorry for getting into this discussion 🙌 . I'm facing the same error i have installed version 1.42.7 (installed with brew today). |
@ricardosikic have you tried setting |
Hi no, I just ran |
It's a env var so you can do it like this
|
Hi ✋, didn't work. i think is the format of my dump. |
What's the size of your seed.sql file? Could you also post the cli logs here? |
hi, 4kb. But the format is like. I think is how images for a post are stored.
|
@ricardosikic I see, yup the error message is different from what's posted previously in this thread. Also, is this from |
Hi, yes the with the command and your las advice my error |
Hi @jadghadry, you can set env vars on powershell like this $Env:SUPABASE_SCANNER_BUFFER_SIZE = '5mb'
supabase start |
@sweatybridge Hello, I use supabase, docker host which docker container should take this env? |
This env is set on your host machine where supabase cli in installed. You don't need to set it inside any container. |
Hi there,
I'm trying to seed my local database with 1000 users and 1000 posts.
However I'm greeted with the following error:
"Body exceeded 1mb limit"
So postgres is complaining that the
seed.sql
file is too big.I've tested inserting a smaller number of rows and it works fine.
Any ideas how I could get around this?
Thanks!
The text was updated successfully, but these errors were encountered: