Repository navigation
Python3 write_channel "Can't convert 'bytes' object to str implicitly" #151
Description
Activity
/assign
The ws client we use
OPCODE_TEXTby default, which accepts utf-8 string or unicode as payload https://github.com/websocket-client/websocket-client/blob/66081be8e0523c9dfaffcb18ba1c8e4765e2288e/websocket/_core.py#L241-L253.I think the error means that we don't support bytes payload yet. One fix could be supporting the
opcodeparameter in our client and do thebytes(chr(channel), 'utf-8')conversion when necessary, but we need to test thatI will work on this when I get time, but in the meantime feel free to jump in if anyone is interested.
/help
@roycaihw:
This request has been marked as needing help from a contributor.Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the/remove-helpcommand.Details
In response to this:
The ws client we use
OPCODE_TEXTby default, which accepts utf-8 string or unicode as payload https://github.com/websocket-client/websocket-client/blob/66081be8e0523c9dfaffcb18ba1c8e4765e2288e/websocket/_core.py#L241-L253.I think the error means that we don't support bytes payload yet. One fix could be supporting the
opcodeparameter in our client and do thebytes(chr(channel), 'utf-8')conversion when necessary, but we need to test thatI will work on this when I get time, but in the meantime feel free to jump in if anyone is interested.
/help
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
- addedhelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
on Aug 7, 2019 I'll give this a stab
Reacted by Haowei Cai (Roy) and Alessandro OgierIssues go stale after 90d of inactivity.
Mark the issue as fresh with/remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.If this issue is safe to close now please do so with
/close.Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale- addedlifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.
on Nov 12, 2019 Stale issues rot after 30d of inactivity.
Mark the issue as fresh with/remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.If this issue is safe to close now please do so with
/close.Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten- addedlifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.and removedlifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.
on Dec 12, 2019 Rotten issues close after 30d of inactivity.
Reopen the issue with/reopen.
Mark the issue as fresh with/remove-lifecycle rotten.Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close@fejta-bot: Closing this issue.
Details
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue with/reopen.
Mark the issue as fresh with/remove-lifecycle rotten.Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/closeInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
I'm not sure this issue is fixed.
/reopen@Ark-kun: You can't reopen an issue/PR unless you authored it or you are a collaborator.
Details
In response to this:
I'm not sure this issue is fixed.
/reopenInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/reopen
/remove-lifecycle rotten
/unassignThis issue still exists. #152 is a great potential fix for it
@roycaihw: Reopened this issue.
Details
In response to this:
/reopen
/remove-lifecycle rotten
/unassignThis issue still exists
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
- removedlifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
on Feb 11, 2020 - added a commit that references this issue
on Feb 14, 2020 Fixed by #152
/close
@roycaihw: Closing this issue.
Details
In response to this:
Fixed by #152
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
I am using the rundeck kubernetes plugin to execute a script to a pod and I get the following error
On this comment there is a workaround - a change to ws_client.py
This worked for me, so maybe someone with more knowledge can see if it should be merged fixed this way, or there's something better
I am using 'Python 3.5.2' and I tried kubernetes 9.0.0 and 10.0.0
This issue does not happen with Python2.7