cachix / feedback

Feedback about https://cachix.org service
2 stars 2 forks source link

Create button does not work #6

Closed nomeata closed 5 years ago

nomeata commented 5 years ago

Not sure what's wrong, but if I go to https://cachix.org/, login, and try to create a public cache (my second), clicking the “Create” button after entering the cache name (bSpokeLight) does not do anything.

domenkozar commented 5 years ago

Hey @nomeata, could you check in network debugger what http response you get once you do that?

nomeata commented 5 years ago

Now I get “Something went wrong” when press the login button, status code 500 from https://cachix.org/api/v1/login/callback?code=….

domenkozar commented 5 years ago

It's failing to parse some github response, I'll look into this in a few hours.

domenkozar commented 5 years ago

Deployed newer version of github that should at least report the error in clearer way in the logs, so I'll kind ask you to retry.

PS: Took a big longer since I had to upgrade the whole Stackage LTS.

nomeata commented 5 years ago

Still can’t add a new cache. According to the dev console:

POST /api/v1/cache/bSpokeLight HTTP/1.1
Host: cachix.org
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0
Accept: */*
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate, br
Referer: https://cachix.org/
Content-Type: application/json
Content-Length: 92
DNT: 1
Connection: keep-alive
Cookie: _ga=… __cfduid=… _gid=G…; _gat_gtag_UA_119953604_1=1; JWT-Cookie=…

response

HTTP/2.0 400 Bad Request
date: Wed, 05 Jun 2019 16:09:46 GMT
content-type: application/json;charset=utf-8
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 4e2369b1dc49bec4-FRA
X-Firefox-Spdy: h2
domenkozar commented 5 years ago

@nomeata there should be body in response, that should give you a clue of why it's failing.

nomeata commented 5 years ago

This is the resquest data, I think:

{"publicSigningKey":null,"isPublic":true,"githubOrganization":"nomeata","githubTeamId":null}

Ah, and now I see it:

{"error":"Binary cache bSpokeLight is invalid. Only characters [a-z-] are allowed."}

I was using captialized letters.

domenkozar commented 5 years ago

It's embarrassing that frontend doesn't display that, I'll fix this shortly.

domenkozar commented 5 years ago

This was fixed :)