Strange 405 Screen on Static Sites and why static sites are free now

Hey! I was recently in a project that POSTs some data to another page. When I tried to do that, I got this raw XML error.

I was a bit confused because this looks like the error you may get when you visit a broken image link on an s3 bucket or a Google Cloud storage bucket. I decided to do some more testing.

After running curl https://will-has-cool-shoes.glitch.me/index.html to see the website when I run a GET request, I got the regular source code, but when I ran curl -X POST https://will-has-cool-shoes.glitch.me/index.html, I got the XML source. Is this the new standard for when you make a POST request on a static site? I could not seem to replicate this on another static site. I also saw in the server header that this looks like an amazon s3 server. server: AmazonS3

This also made me realize why static projects are now free. It is because they are being hosting on Amazon s3 which is also used for Glitch CDN. s3 is cheaper than VMs, so that explains why static sites are free now.

URL: https://will-has-cool-shoes.glitch.me/

Type in a random username and password to replicate.

I also can’t make GET forms on static sites as they get a Project Not Found error :frowning: Asked Glitch Support via email and got no reply. Well, they said that it works without going to the editor, then I showed a video of it not working and they have ghosted me :joy:

1 Like

I’m pretty sure it is because static projects are now hosted on s3 buckets.

Edit: Found out this was the 405 error.
Running curl -X POST -I https://will-has-cool-shoes.glitch.me/index.html tells me that.

Here’s the video of my error on static sites:
https://hf-files-oregon.s3-us-west-2.amazonaws.com/hdpglitch_email_attachments/2020/07-24/d6b0d909-0930-476e-9402-c93766f97098/f2e48540-b4fe-47e2-a0d5-f80acbe21f86.mp4?Signature=Ea6kAJeRZWe2gJW4sfQLn%2BIgxc4%3D&Expires=1595868434&AWSAccessKeyId=AKIASBRBREIGNJFFU4OL

Can you run curl -I (url) in the command prompt? I’m interested about what error it gives you.

I ain’t got a computer on holiday. The error only appears if it’s a form, not when going directly to a url. The form is a GET form. Maybe I could use Javascript to take the values of the inputs and take them to the url instead of using a form and a submit.

1 Like

Not sure. Your best bet may be to use another site to handle the data.

I mean I don’t really care, I just made the website in a few hours and don’t really want to spend much time maintaining it. It’s just a bit annoying as it worked days before they introduce the 24/7 static projects

1 Like

Try using postwoman.io, an online alternative to Postman, to send to requests to endpoints and investigate further :wink:

3 Likes

Glitch seems to have banned requests from it :frowning:

1 Like

Likely to prevent pings.

Well how is a post request useful in a static site exactly? What handles the post request for login for example.