Open pre opened 5 years ago
I believe the problem here is that Excon
's response_block
is called even though the server responds with an error. There's no way to access the response or response headers from inside the response_block
to determine this.
With the current excon, I believe the only options are:
WatchEvent.new
with the json-doc.Hi @kke @pre I am trying this gem and am having exactly this problem. How can I fix? Thanks!
Got rid of the error by specifying the correct service account. Although the watch
doesn't seem to work... it only reports the events when I shutdown the program...
Did you try from master branch? (gem 'k8s-client', github: 'kontena/k8s-client', branch: 'master'
in gemfile)
May not make any difference, but maybe it does.
Hi @kke I tried the master branch and I had to require watch_events
manually for some reason. I had the same problem though with the watch not firing when events happen. What can I try? :)
Let
Calling
lolcats.watch
will give misleading error message caused by permission denied:Calling
lolcats.list
gives an error message which gives you out a reason:It took me some time to figure out the reason without a reasonable failure message.