-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
Description
Summary
I'm using matlab-proxy to access a MATLAB instance that is running in a compute node that is able to access the internet via and http proxy (pproxy). I saw there is an error message in MATLAB that appears every time I use the Copilot functionality.
The error message states that an Invalid method has been encountered:
>> [E 2025-11-03 14:47:35.899 MATLABProxyApp] Failed to forward HTTP request to MATLAB with error: 400, message="Content-Length can't be present with Transfer-Encoding:\n\n b'Content-Length: 48005'\n ^", url='https://127.0.0.1:31516/msh/matlab/content/bundle.mwBundle.agent-spf-ui-matlab.js?mre=http://localhost:7070/'
Error handling request from 10.100.0.61
Traceback (most recent call last):
File "/opt/matlab-proxy-venv/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 408, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 556, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMethod: 400, message:
Invalid method encountered:
b'\x82\x8a\xf8\xd7\xea\x06\xf8\xd7\xea\x0c\xf8\xd7\xea\x06\xfa\xd7'
^
>> Error handling request from 10.100.0.61
Traceback (most recent call last):
File "/opt/matlab-proxy-venv/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 408, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 556, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMethod: 400, message:
Invalid method encountered:
b'\x82\x8ao\xaf\xfc\x9co\xaf\xfc\x96o\xaf\xfc\x9cm\xaf'
^
Here are the flags that I'm setting before launching matlab-proxy-app:
$ apptainer shell --env MLM_LICENSE_FILE=27000@somamgt02 --env MWI_APP_PORT=7070 --env MWI_USE_HTTPS=False --env MWI_ENABLE_SSL=False --env MWI_CUSTOM_MATLAB_ROOT=/opt/matlab/R2025b --env MWI_LOG_LEVEL="INFO" --env MWI_LOG_FILE="/tmp/matlab-proxy-log.txt" --nv --bind /gpfs:/gpfs --dns 8.8.8.8 /gpfs/scratch/containers/matlab-proxy.sif
Apptainer> env | grep -E 'MLM|MWI|MATLAB|http'
MWI_CUSTOM_MATLAB_ROOT=/opt/matlab/R2025b
MWI_LOG_LEVEL=INFO
MATLAB_ROOT=/opt/matlab/R2025b
MW_CONTEXT_TAGS=MATLAB:DEEPLEARNING:DOCKERHUB:V1
MWI_ENABLE_TOKEN_AUTH=False
MWI_USE_HTTPS=False
MWI_ENABLE_SSL=False
https_proxy=http://somalogin01:8080
MLM_LICENSE_FILE=27000@somamgt02
HTTPS_PROXY=http://somalogin01:8080
HTTP_PROXY=http://somalogin01:8080
MHLM_CONTEXT=MATLAB_DL_DOCKERHUB
http_proxy=http://somalogin01:8080
MWI_APP_PORT=7070
MWI_LOG_FILE=/tmp/matlab-proxy-log.txtBrowser(s) used
Chrome
Script output
No response