Looks like GitLab Snippets API for projects is changed:
gitlab-foss!32296 (merged)
Just a quick fix, not tested yet.