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

POST API results in 500 error #3261

Open
AllanJard opened this issue Jan 31, 2025 · 1 comment
Open

POST API results in 500 error #3261

AllanJard opened this issue Jan 31, 2025 · 1 comment

Comments

@AllanJard
Copy link

Description of Bug

Using the POST API generates a 500 error.

Steps to Reproduce

  1. Load https://live.datatables.net/jozozota/1/edit (I tried to send it as an HTML file, but Github doesn't allow HTML attachments)
  2. In the preview tab scroll down and click "Submit Query"
  3. Stackblitz loads and shows a 500 error

Expected Behavior

There is no indication of what is causing the 500 error. As far as I can tell I've followed the POST API correctly. If I reduce the number of files, to just one of them it appears to load correctly, but all of them are needed to successfully create the project. I haven't been able to identify one specific file / field which is causing the problem.

Screenshots/Screencast

Image

Additional Context/Questions

The intention here is that on the DataTables download builder I'll show a link that lets the user open a Stackblitz project with the selected packages ready to be used. Similar to the vite.new site that you run, but customised for the build options.

@AllanJard
Copy link
Author

I think actually the problem is name of the files in folders. I had assumed I should use:

project[files][src][style.css]

In fact it should be:

project[files][src/style.css]

Can perhaps be closed, but it would be good to have this made explicit in the documentation.

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

No branches or pull requests

1 participant