How did you set the proxy? It’s possible that the proxy wasn’t set properly and thus isn’t used by snapd.