-
Notifications
You must be signed in to change notification settings - Fork 35
Error 500 in sverdle on demo app #85
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
Comments
It's working fine in my environment, so I'm having trouble identifying what the problem could be. #83 has no impact when you Did you pull the latest version from this repository? How did you build/run it? What does the browser console and terminal console report? |
Sorry for the lack of context, it was late at night when I made the issue. Using Full log from start and loading the sverdle page: Welcome to Azure Static Web Apps CLI (1.0.2) Multiple configurations found in "swa-cli.config.json", but none was specified. Using configuration "app" from file:
[api] Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom] So the page loads normally on the home and about, but 500s on sverdle |
Okay, thank you. That's good information. I think this is the relevant line: [swa] GET http://localhost:4280/api/__render - 404`` It looks like |
I don't think it would be #83, since I haven't released those changes yet (see #76). Did you do
Right now you have to fully build the project to test with the SWA CLI. I'm not sure if there's a way around that. |
The current master commit cant run |
Adding the block
to the index file, instead of the fixes suggested on #83 changed the error, with it, it can be built and shows up the sverdle page, normally, but once you press the enter key it fails with
|
What operating system are you using? Do you get stuck in a redirect loop when you refresh the |
I'm currently using archlinux, node v16.16.0, swa-cli 1.0.2. I've created another sveltekit sverdle app, and added the adapter, no problems in compilations and the page loads without problems, but swa client crashes on sverdle submit
I've put this on the cloud, in the following link: link deprecated the project I used for this one is in my github, link deprecated. Although on the cloud it doesnt crash, it returns 200 but doesnt update with the returned state of the sverdle, as in it resets the state of the page and ignores my submission. |
I just deployed the local demo app in this repo (which uses the unreleased adapter version) to Azure SWA and it doesn't have the issue you described: https://polite-desert-00b80111e.2.azurestaticapps.net/sverdle I suspect the error is related to #63 and cookies aren't being set correctly. This fix is in the main branch but not yet released. I'll cut a new release and see if that fixes it. |
Can you try svelte-adapter-azure-swa v0.11 and see if that fixes the issue with your deployed demo? |
v0.11 worked. Deployed is working fine, but not on swa-cli (same server exit error from before), although at this point I think its the swa tool itself that is being troublesome, I'll try it in a windows environment tomorrow see if helps. Thanks for all the support and help |
Running the StackBlitz linked on the oficial svelteKit page is also erroring 500 on sverdle, So I'm assuming the error is internal to svelte or svelte kit and not relating to the adapter at this point. |
The stackblitz issue is CSRF related, see sveltejs/kit#7277. Though maybe the SWA CLI is having the same issue? |
Internal server error on sverdle page
The text was updated successfully, but these errors were encountered: