I have a Glitch Nodejs apps that is posting (using require.post ) to a second Glitch nodejs express app. However all the ‘post’ requests fail with a status code of 403, and a web page, that implies that the receiving Glitch app is a sleep or missing. I can send data via curl, and get a valid response, and the second app registers the post from curl. But not from the first glitch application. I can also post from the first app to Postman’s echo site, and get a valid response, and the data is received ok. So it seems that Glitch is failing to catch the post and respond in time. How can Glitch work as an API services (even for testing), if it loose messages.
This is likely happening because of the ping block. Glitch probably thinks you are trying to ping a project.
Very sorry about this!
Not sure why it thinks this is a ping. Its a direct call to an app end point. Does this mean one glitch application cannot work with another glitch application?
I’m afraid not at this time.
Probably because there were some auto-pingers made ON GLITCH.
Thanks for the clarification. May I suggest it could be worth documenting this point somewhere.
I suppose you could ask firstname.lastname@example.org about that. Its a good idea.
You have to send a User-Agent header in your request, or Glitch will block it. Unhelpful that they never documented this, isn’t it?
A link to a post with a quote allegedly from Glitch support on the matter:
Well I have tried using a header value for “User-Agent” both a real name of the application, and a spoof “curl” one. Neither worked.
This is not true. I can send request to my project from my Vultr instance. What it actually checks for is the IP. VPS providers can shutdown instances that breaks TOS of other websites instantly. But auto pingers have IPs that they use, and since there were so many people on Glitching using pingers, it was easy to filter out where they were coming from. Also Glitch can email companies and request the IPs.