Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gist creation failing in Customizer #14411

Closed
aaronjhiggins opened this issue Aug 17, 2014 · 7 comments
Closed

Gist creation failing in Customizer #14411

aaronjhiggins opened this issue Aug 17, 2014 · 7 comments
Milestone

Comments

@aaronjhiggins
Copy link

I get this error when I try to download a custom bootstrap from http://getbootstrap.com/customize/ . Tried on two computers, using two different networks. I get this error when I tried to create a custom bootstrap from scratch and from an existing build.

Thanks in advance for your help.

"Ruh roh! Could not save gist file, configuration not saved."

@aaronjhiggins aaronjhiggins changed the title cant cant download custom bootstrap build Aug 17, 2014
@cvrebert
Copy link
Collaborator

That error isn't fatal. You should still be able to download the customized build even if the Gist could not be saved.

@cvrebert
Copy link
Collaborator

Although I can reproduce that the Gist creation seems to be failing every time.

@cvrebert cvrebert changed the title cant download custom bootstrap build Gist creation failing in Customizer Aug 17, 2014
@cvrebert
Copy link
Collaborator

Looks like the GitHub Gist API is returning HTTP 500 errors.

@cvrebert
Copy link
Collaborator

From chrome://net-internals/#events:

14457: URL_REQUEST
https://api.github.com/gists
Start Time: 2014-08-17 11:10:37.204
<snip>
t=2745 [st=183]     +HTTP_TRANSACTION_SEND_REQUEST  [dt=1]
t=2745 [st=183]        HTTP_TRANSACTION_SEND_REQUEST_HEADERS
                       --> POST /gists HTTP/1.1
                           Host: api.github.com
                           Connection: keep-alive
                           Content-Length: 19623
                           Accept: application/json, text/javascript, */*; q=0.01
                           Origin: http://getbootstrap.com
                           User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36
                           Content-Type: application/x-www-form-urlencoded; charset=UTF-8
                           Referer: http://getbootstrap.com/customize/
                           Accept-Encoding: gzip,deflate,sdch
                           Accept-Language: en-US,en;q=0.8
t=2745 [st=183]        HTTP_TRANSACTION_SEND_REQUEST_BODY
                       --> did_merge = false
                       --> is_chunked = false
                       --> length = 19623
t=2746 [st=184]     -HTTP_TRANSACTION_SEND_REQUEST
t=2746 [st=184]     +HTTP_TRANSACTION_READ_HEADERS  [dt=261]
t=2746 [st=184]        HTTP_STREAM_PARSER_READ_HEADERS  [dt=261]
t=3007 [st=445]        HTTP_TRANSACTION_READ_RESPONSE_HEADERS
                       --> HTTP/1.1 500 Internal Server Error
                           Server: GitHub.com
                           Date: Sun, 17 Aug 2014 18:10:37 GMT
                           Transfer-Encoding: chunked
t=3007 [st=445]     -HTTP_TRANSACTION_READ_HEADERS
<snip>

@cvrebert
Copy link
Collaborator

I've escalated this to GitHub Support. They say they're working on fixing the problem.

@cvrebert
Copy link
Collaborator

The Customizer is POSTing JSON content to the API endpoint, but sending Content-type: application/x-www-form-urlencoded instead of application/json. Apparently this used to work somehow, but GitHub recently changed something on their end, so now it's failing, albeit with a 500 error instead of a 400 error.

@cvrebert cvrebert added this to the v3.2.1 milestone Aug 17, 2014
@hnrch02
Copy link
Collaborator

hnrch02 commented Aug 17, 2014

@cvrebert In case you haven't figured it out already, setting contentType to application/json; charset=UTF-8 on the $.ajax request does the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants