Describe the bug
commandPort -name "localhost:7001" -sourceType "mel" -echoOutput;
----------------------------------------# ----------------------------------------
Exception happened during processing of request from('127.0.0.1', 56580)
Traceback (most recent call last):
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 316, in _handle_request_noblock
self.process_request(request, client_address)
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 347, in process_request
self.finish_request(request, client_address)
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 720, in init
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\maya\app\general\CommandPort.py", line 137, in handle
self.wfile.write(self.server.commandMessageQueue.get() + self.resp_term)
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 799, in write
TypeError: a bytes-like object is required, not 'str'
To Reproduce
Steps to reproduce the behavior:
- Installed MayaCode extension
- Click on 'Send Python code to Maya'
- See error
Expected behavior
Screenshots

Desktop (please complete the following information):
- OS: Windows 11
- Browser chrome
- Version 10.0.22621 Build 22621
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Describe the bug
commandPort -name "localhost:7001" -sourceType "mel" -echoOutput;
----------------------------------------# ----------------------------------------
Exception happened during processing of request from('127.0.0.1', 56580)
Traceback (most recent call last):
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 316, in _handle_request_noblock
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 347, in process_request
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 360, in finish_request
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 720, in init
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\maya\app\general\CommandPort.py", line 137, in handle
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 799, in write
TypeError: a bytes-like object is required, not 'str'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots

Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.