Giter Site home page Giter Site logo

k8s-terminal's Introduction

Hi 👋, I'm ica10888

I am a software developer

I am interested in kubernetes , devops , functional programming and more

My most commonly used programming languages are Java , Golang and Python

Learning Rust !

GitHub stats

k8s-terminal's People

Contributors

ica10888 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

k8s-terminal's Issues

输入和输出相同

把项目中websocket部分拷贝到了自己工程,
然后在浏览器中的websocket测试工具测试,
现象是发送什么,返回什么。有点奇怪

400 Bad Request

您好,运行报错:

java.net.ProtocolException: Expected HTTP 101 response but was '400 Bad Request'
at okhttp3.internal.ws.RealWebSocket.checkUpgradeSuccess(RealWebSocket.java:224)
at okhttp3.internal.ws.RealWebSocket$1.onResponse(RealWebSocket.java:195)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

假如 namespace 或 container 随意写会报 404,那么我猜测认证已通过。

SpringWebSocketHandler.afterConnectionEstablished 的 connected 日志也能看到,之后就 400

烦请指点。

400 Bad Request

kubeApiClient = new ClientBuilder().setBasePath(apiService).setVerifyingSsl(false).setAuthentication(new AccessTokenAuthentication(token)).build();
使用这种方式初始化的kubeApiClient 在执行outputStream.write(cmdArgs.getBytes())会报错
java.net.ProtocolException: Expected HTTP 101 response but was '400 Bad Request'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.