Closed laddi closed 8 years ago
In other words the problem is the "resolve(JSON.parse(data));" in the get method. Using post doesn't help.
Sorry This is my fault
Please upgrate module to 0.4.9
Use log
function
K8s.api({ ... }).log('namespaces/xxx/pods/yyy/logs')
Awesome! Thanks for the quick help.
Thanks a bunch, especially for a speedy reply and fix! 😄
The problem is obvious, calling
K8s.api({ ... }).get('namespaces/xxx/pods/yyy/logs')
will always throw an error since the result is plaintext and not application/json. Not sure how to handle this properly, though...