Custom domains not working for some projects


#24

This is what I see at the console:

curl -IL http://rsvprobably.com/

HTTP/1.1 302 Found
Server: nginx
Date: Tue, 06 Nov 2018 20:22:40 GMT
Content-Type: text/plain; charset=utf-8
Connection: keep-alive
Location: https://rsvp.glitch.me/
X-Served-By: Namecheap URL Forward

HTTP/2 200
date: Tue, 06 Nov 2018 20:22:40 GMT
content-type: text/html; charset=UTF-8
content-length: 4482
x-powered-by: Express
accept-ranges: bytes
cache-control: public, max-age=0
last-modified: Tue, 24 Jul 2018 00:00:21 GMT
etag: W/"1182-164c9963208"

In chrome I end up at https://rsvp.glitch.me/.


#25

Yes, sorry, that’s an existing redirect I have. Sounds like I’ve muddied things here. Many of my custom domains redirect to Glitch apps like that, which is not the same as this new feature where I can make my custom domain the canonical URL, right?

But, first things first, what about my question about the shw.io URLs saying “Not Found”?


#26

Ah yes, I see where I was confused. Yes, there is work underway to fix a bug that cropped up a few days ago. Some portions of the solution are in place but there’s more work yet to be done, so things aren’t quite where they need to be yet.

Thanks for your patience - hopefully the full fix will be in place soon!


#27

Note that visiting the shw.io URL itself in the browser will display ‘Not Found’ - that’s to be expected. It’s not intended to be used directly, only as part of a CNAME.


#28

I forget which one that is but I have a different one.

Domain: https://discord.popeeyy.me/
CNAME: zglnyz5ohkfgzpre.shw.io
Project: https://user-to-discord.glitch.me


#29

Hey my custom domains seem to be working now but if I try to access https://apibeta.advaithbot.com/api/servers it says “no mount found”, but https://advaithbot-beta.glitch.me/api/servers and https://apibeta.advaithbot.com work.


#30

The full set of changes we expected to resolve the custom domain issues have been deployed and it looks like custom domains are coming back - not everyone’s is working yet but some definitely are.

@advaith are you seeing any errors in the logs when you access your custom domain’s /api/servers endpoint? Can you tell if the request is making it to your project at all? We’re taking a look to see what might be going on, but any information you can provide will be helpful.


#31

Actually it looks like our partners over at fly.io have already issued a fix for that problem; @advaith your endpoint seems to be working correctly now.


#32

Everything is working for me now! With one exception that’s probably not Glitch’s or Fly.io’s fault but I’d be grateful to understand what it would take to fix this. For my MoleCall project I have the CNAME set up for www.molecall.com to be the canonical name for molecall.glitch.me, which is great, and I also have a redirect set up for the root domain so molecall.com redirects to www.molecall.com. Also great. But there must be something else I need to do for SSL on the root domain because, well, let me convert this to tabular form:

  1. http://molecall.com WORKS
  2. http://www.molecall.com WORKS
  3. https://www.molecall.com WORKS
  4. https://molecall.com DOESN’T WORK

The last one times out. (And similarly for other projects with analogous setups.)

Would using A records instead of CNAMEs solve that?


#33

Hey @dreeves sorry you’re site is still having some trouble.

Here’s what I think is happening. www.molecall.com resolves (eventually) to the fly.io / shw.io servers, which are serving up an appropriate SSL certificate for www.molecall.com, so that all works as expected. However molecall.com itself, where the redirect to www.molecall.com takes place, is being served by a Namecheap server (based both on the results of a WHOIS lookup at https://whois.arin.net/rest/net/NET-192-64-112-0-1 and on the X-Served-By: Namecheap URL Forward header returned in a curl -IL http://molecall.com/ request) which doesn’t have an SSL cert for molecall.com (or at least isn’t responding on port 443). Therefore requests for https://molecall.com time out.

Swapping the CNAME record at www.molecall.com for an A record wouldn’t help; A records need to point to an IP address, and presumably if you pointed www.molecall.com to 206.51.242.1 (the ip where 1zdn9kj2hmfo4q3v.shw.io resides) then fly.io wouldn’t be able to resolve your custom domain to the right glitch.me project (I expect that they use the host header of the incoming request to determine which application to serve, but that’s largely a guess).

My suspicion is that you need to make some changes in your Namecheap forwarder configuration to have them serve a valid SSL cert for molecall.com if you want SSL to work at that address.

Hope that helps!


#34

Hi, I also have another issue, there are some domains that I probably have used fly.io on and I want to connect those to Glitch using the built-in integration but I can’t because of the error Hostname is owned by another organization. If you control that hostname, please contact support@fly.io. Fly.io support hasn’t been much help. Is there a way for me to be able to use these domains with Glitch?


#35

Hey there, unfortunately we can’t do anything from our end to make that domain available, but I’ll see if we can help the fly.io folks in any way. What’s the domain you’re looking to reassign?


#36

biso.ga.
​​​​​​​​​


#37

Hey @advaith I got in touch with the folks over at fly.io and they couldn’t find a ticket for your request. They do say, however, that you should be able to delete the hostname from fly and it should become available for you to use.

Let me know how you get on!


#38

Kurt responded to the support email saying

Hi Advaith! I went ahead and removed the previous domain, you should be all set now. Thank you for being patient with this! We’re still getting the kinks worked out. :slight_smile:

on November 1, I replied on the 7th saying it still didnt work and haven’t gotten a response. I can’t find anything in my fly account using the domain but its possible another dev on this project tried something, i’ll ask him.


#39

I’ve talked to the other dev and he says he hasn’t used Fly, so I don’t know how the domain could be connected to it. There are no DNS records pointing to Fly.


#40

Ok, I’ve reached back out to the wonderful folks at fly and they’re going to take a closer look.


#41

Looks like I forgot to mention it but fly sent me an email and fixed it.

However today I’m having a new issue with custom domains: when I try to add one I get the error

“Error: Error: Error: getaddrinfo ENOTFOUND fly.iohostnames fly.iohostnames:443”


#42

I am able to repro this and have brought this back to the team to see what’s going on. Will post back when I have more information!


#43

Hey @advaith this issue appears to be resolved; can you give it another try?