davazp / graphql-mode

An Emacs mode for GraphQL
GNU General Public License v3.0
162 stars 31 forks source link

graphql-send-query query freezes Emacs #31

Open shackra opened 5 years ago

shackra commented 5 years ago

for some reason my requests never finish making Emacs freeze for long periods of time, I have to use C-g to regain control.

This is the backtrace:

Debugger entered--Lisp error: (quit)
  request--curl-sync("https://gitlab.com/api/graphql" :type "POST" :data "{\"variables\":{\"currentGroup\":\"space-empire\"},\"query\":\"query {\\n  group(fullPath: $current) {\\n    id\\n    name\\n  }\\n}\\n\"}" :headers (("Content-Type" . "application/json")) :parser json-read :sync t :complete #f(compiled-function (&rest _) #<bytecode 0x156e48541ef9>) :error #f(compiled-function (&rest args2) #<bytecode 0x156e48542305>) :url "https://gitlab.com/api/graphql" :response #s(request-response :status-code nil :history nil :data nil :error-thrown nil :symbol-status nil :url "https://gitlab.com/api/graphql" :done-p nil :settings (:type "POST" :data "{\"variables\":{\"currentGroup\":\"space-empire\"},\"quer..." :headers (("Content-Type" . "application/json")) :parser json-read :sync t :complete #f(compiled-function (&rest _) #<bytecode 0x156e48541ef9>) :error #f(compiled-function (&rest args2) #<bytecode 0x156e48542305>) :url "https://gitlab.com/api/graphql" :response #19 :encoding utf-8) :-buffer #<buffer  *request curl*> :-raw-header nil :-timer nil :-backend curl :-tempfiles ("/tmp/emacs-requestrZtD9p")) :encoding utf-8)
  apply(request--curl-sync "https://gitlab.com/api/graphql" (:type "POST" :data "{\"variables\":{\"currentGroup\":\"space-empire\"},\"query\":\"query {\\n  group(fullPath: $current) {\\n    id\\n    name\\n  }\\n}\\n\"}" :headers (("Content-Type" . "application/json")) :parser json-read :sync t :complete #f(compiled-function (&rest _) #<bytecode 0x156e48541ef9>) :error #f(compiled-function (&rest args2) #<bytecode 0x156e48542305>) :url "https://gitlab.com/api/graphql" :response #s(request-response :status-code nil :history nil :data nil :error-thrown nil :symbol-status nil :url "https://gitlab.com/api/graphql" :done-p nil :settings #3 :-buffer #<buffer  *request curl*> :-raw-header nil :-timer nil :-backend curl :-tempfiles ("/tmp/emacs-requestrZtD9p")) :encoding utf-8))
  request("https://gitlab.com/api/graphql" :type "POST" :data "{\"variables\":{\"currentGroup\":\"space-empire\"},\"query\":\"query {\\n  group(fullPath: $current) {\\n    id\\n    name\\n  }\\n}\\n\"}" :headers (("Content-Type" . "application/json")) :parser json-read :sync t :complete #f(compiled-function (&rest _) #<bytecode 0x156e48541ef9>))
  graphql-post-request("https://gitlab.com/api/graphql" "query {\n  group(fullPath: $current) {\n    id\n    name\n  }\n}\n" "" ((currentGroup . "space-empire")))
  graphql--query("query {\n  group(fullPath: $current) {\n    id\n    name\n  }\n}\n" "" ((currentGroup . "space-empire")))
  graphql-send-query()
  funcall-interactively(graphql-send-query)
  call-interactively(graphql-send-query nil nil)
  command-execute(graphql-send-query)