Skip to content
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

JSON payload is larger than allowed #196

Open
TheMauss opened this issue Feb 5, 2024 · 11 comments
Open

JSON payload is larger than allowed #196

TheMauss opened this issue Feb 5, 2024 · 11 comments
Labels

Comments

@TheMauss
Copy link

TheMauss commented Feb 5, 2024

Hello, would it be possible to increase the payload? I love devving in playground.

@acheroncrypto
Copy link
Member

How big is your payload? We're quite generous in terms of payload size but we also have to consider that at one point, it starts to take a lot of time to build programs that are larger than the current limit.

@TheMauss
Copy link
Author

TheMauss commented Feb 6, 2024

I am working around the limit, but like 50% increase would be sweet spot.

@acheroncrypto
Copy link
Member

We could do that but will have to test the build times first. How long does it take to build your current program?

@TheMauss
Copy link
Author

TheMauss commented Feb 7, 2024

just tested, 15 seconds at the payload limit, which is pretty good

@TheMauss
Copy link
Author

TheMauss commented Feb 9, 2024

Any possible update on that?

@acheroncrypto
Copy link
Member

I'd like to increase it further but the reason why I'm currently hesitant is because build times will go up by ~2x in the next Anchor version due to building of the IDL.

The goal is to keep build times <10s and even the current limit exceeds that.

One solution would be to allow anyone to use their own machine to build programs. To do this, all you need would be Docker and run the playground server with docker compose up command. This would mean no limits as well as any customization you might want to have. Would you be interested in this?

@TheMauss
Copy link
Author

Yeah, I would love that

@acheroncrypto
Copy link
Member

FYI, you can already run playground locally on your machine with just a few commands:

  1. Clone the repo
  2. Setup client
  3. Run server

@TheMauss
Copy link
Author

Okk, thank you.

Btw is there any issue with the playground? Cant deploy program for 2 days.

Console says no error, but i get only this in terminal
"Deploying... This could take a while depending on the program size and network conditions."

@acheroncrypto
Copy link
Member

There was an issue but it wasn't related to the playground — devnet was down for a couple of days and it just got up and running again a few hours ago.

@TheMauss
Copy link
Author

Works perfectly, increased the payload on local. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants