Why do I receive an internal error code 500 when trying to call my MATLAB function via MATLAB Web Server?
8 views (last 30 days)
Show older comments
Why do I receive an internal error code 500 when trying to call my MATLAB function via MATLAB Web Server?
Accepted Answer
MathWorks Support Team
on 22 Jan 2010
HTTP error 500 is a generic error. To determine the real error, try the following in Internet Explorer:
Go to Tools -> Internet Options -> Advanced and Uncheck "Show friendly HTTP error messages"
One of the common error messages seen is:
[error] [client 128.59.51.202] malformed header from script. Bad header=TRAINSCG, Epoch 0/2000, SSE 0.: matweb.exe, referer: http:// texture.bme.columbia.edu:20000/generate_sets.html
This error indicates that your code is displaying something before the HTTP mime format is written. This behavior has been observed when calling Neural Network Toolbox functions like TRAIN or having DISP functions in your MATLAB code.
You can capture these displayed values into a variable by using the EVALC command to evaluate the code and take the return value in a variable. For more information on EVALC command, refer to the documentation by typing one of the following at the MATLAB command prompt:
help evalc
doc evalc
0 Comments
More Answers (0)
See Also
Categories
Find more on Web Services in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!