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

wrong-type-argument number-or-marker-p nil #6

Open
cescoferraro opened this issue Apr 10, 2017 · 2 comments
Open

wrong-type-argument number-or-marker-p nil #6

cescoferraro opened this issue Apr 10, 2017 · 2 comments

Comments

@cescoferraro
Copy link

This happens only with GUI emacs. Terminal seems fine.

M-x timonier-version
timonier 0.1.0 


[k8s] API version: v1
[Kubernetes] Error with API: (wrong-type-argument number-or-marker-p nil)
cescoferraro in ~/go/src/github.com/cescoferraro
$ k version
Client Version: version.Info{Major:"1", Minor:"5+", GitVersion:"v1.5.0-alpha.0.643+54f24b02ea708d", GitCommit:"54f24b02ea708dcb3290694105a7aded8e80c7e3", GitTreeState:"clean", BuildDate:"2016-09-12T20:30:36Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.0", GitCommit:"5cb86ee022267586db386f62781338b0483733b3", GitTreeState:"clean", BuildDate:"", GoVersion:"", Compiler:"", Platform:""}
@dholm
Copy link

dholm commented Mar 7, 2018

@cescoferraro Did you set timonier-k8s-proxy?

@wynro
Copy link

wynro commented Mar 13, 2019

@dholm I have the same problem. I have setup timonier-k8s-proxy correctly

A backtrace:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  request--parse-data(#s(request-response :status-code nil :history nil :data nil :error-thrown (error . "exited abnormally with code 60\n") :symbol-status nil :url "https://192.168.99.100:8443//api" :done-p nil :settings (:type "GET" :headers (("User-Agent" . "timonier/0.1.0")) :sync t :data nil :parser json-read :error #f(compiled-function (&rest args2) #<bytecode 0x155689507d51>) :url "https://192.168.99.100:8443//api" :response #1) :-buffer #<buffer  *request curl*-628918> :-raw-header "" :-timer nil :-backend curl :-tempfiles nil) json-read)
  request--callback(#<buffer  *request curl*-628918> :type "GET" :headers (("User-Agent" . "timonier/0.1.0")) :sync t :data nil :parser json-read :error #f(compiled-function (&rest args2) #<bytecode 0x155689507d51>) :url "https://192.168.99.100:8443//api" :response #s(request-response :status-code nil :history nil :data nil :error-thrown (error . "exited abnormally with code 60\n") :symbol-status nil :url "https://192.168.99.100:8443//api" :done-p nil :settings (:type "GET" :headers (("User-Agent" . "timonier/0.1.0")) :sync t :data nil :parser json-read :error #f(compiled-function (&rest args2) #<bytecode 0x155689507d51>) :url "https://192.168.99.100:8443//api" :response #17) :-buffer #<buffer  *request curl*-628918> :-raw-header "" :-timer nil :-backend curl :-tempfiles nil))
  apply(request--callback #<buffer  *request curl*-628918> (:type "GET" :headers (("User-Agent" . "timonier/0.1.0")) :sync t :data nil :parser json-read :error #f(compiled-function (&rest args2) #<bytecode 0x155689507d51>) :url "https://192.168.99.100:8443//api" :response #s(request-response :status-code nil :history nil :data nil :error-thrown (error . "exited abnormally with code 60\n") :symbol-status nil :url "https://192.168.99.100:8443//api" :done-p nil :settings #3 :-buffer #<buffer  *request curl*-628918> :-raw-header "" :-timer nil :-backend curl :-tempfiles nil)))
  request--curl-callback(#<process request curl> "exited abnormally with code 60\n")
  accept-process-output(#<process request curl>)
  request--curl-sync("https://192.168.99.100:8443//api" :type "GET" :headers (("User-Agent" . "timonier/0.1.0")) :sync t :data nil :parser json-read :error #f(compiled-function (&rest args2) #<bytecode 0x155689507d51>) :url "https://192.168.99.100:8443//api" :response #s(request-response :status-code nil :history nil :data nil :error-thrown (error . "exited abnormally with code 60\n") :symbol-status nil :url "https://192.168.99.100:8443//api" :done-p nil :settings (:type "GET" :headers (("User-Agent" . "timonier/0.1.0")) :sync t :data nil :parser json-read :error #f(compiled-function (&rest args2) #<bytecode 0x155689507d51>) :url "https://192.168.99.100:8443//api" :response #17) :-buffer #<buffer  *request curl*-628918> :-raw-header "" :-timer nil :-backend curl :-tempfiles nil))
  apply(request--curl-sync "https://192.168.99.100:8443//api" (:type "GET" :headers (("User-Agent" . "timonier/0.1.0")) :sync t :data nil :parser json-read :error #f(compiled-function (&rest args2) #<bytecode 0x155689507d51>) :url "https://192.168.99.100:8443//api" :response #s(request-response :status-code nil :history nil :data nil :error-thrown (error . "exited abnormally with code 60\n") :symbol-status nil :url "https://192.168.99.100:8443//api" :done-p nil :settings #3 :-buffer #<buffer  *request curl*-628918> :-raw-header "" :-timer nil :-backend curl :-tempfiles nil)))
  request("https://192.168.99.100:8443//api" :type "GET" :headers (("User-Agent" . "timonier/0.1.0")) :sync t :data nil :parser json-read)
  timonier--perform-http-request("GET" "https://192.168.99.100:8443//api" nil 200)
  timonier--k8s-get-api()
  timonier--k8s-get-namespaces()
  timonier-k8s()
  funcall-interactively(timonier-k8s)
  call-interactively(timonier-k8s record nil)
  command-execute(timonier-k8s record)
  execute-extended-command(nil "timonier-k8s" nil)
  funcall-interactively(execute-extended-command nil "timonier-k8s" nil)
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

I have realized that a request to https://192.168.99.100:8443//api instead of https://192.168.99.100:8443/api returns a 403 code. Maybe that's the problem? Just a random guess Nope, although the fix would be to change the in function timonier--k8s-get-uri the line from

      (s-concat timonier-k8s-proxy "/" uri)

to

      (s-concat timonier-k8s-proxy uri)

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

No branches or pull requests

3 participants