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

Swallowed error if add files field to spin.toml #3019

Open
kate-goldenring opened this issue Feb 21, 2025 · 1 comment · May be fixed by #3020
Open

Swallowed error if add files field to spin.toml #3019

kate-goldenring opened this issue Feb 21, 2025 · 1 comment · May be fixed by #3020
Labels
bug Something isn't working

Comments

@kate-goldenring
Copy link
Contributor

Adding a files field to the spin.toml causes the application to error even if i am not using them.

Reproduce

Create a simple hello world app, create a mydir directory, and add the following files field to the application manifest files = [{ source="mydir", destination="/" }]:

spin new -t http-rust files-bug --accept-defaults
 cd files-bug
mkdir mydir
# add `files = [{ source="mydir", destination="/" }]` to component
spin build --up

When you curl the app you get curl: (52) Empty reply from server with no error logged

@kate-goldenring kate-goldenring added the bug Something isn't working label Feb 21, 2025
@k0pernicus
Copy link

k0pernicus commented Feb 21, 2025

Note: I get that error yesterday too (I forgot to create an issue).

It seems that the issue is because the folder is empty.
As an example, if you create a file / directory in it and the error will disappear.

I did not check the code to know the exact reason yet.

@kate-goldenring kate-goldenring linked a pull request Feb 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants