curl - 无法使用 Octave(4.4.1) 提交在线作业
问题描述
当我尝试在 coursera 中提交我的在线作业时,它显示以下错误(虽然我确实联系了导师,他们建议关闭防火墙,但它没有帮助,我也尝试了 VPN,但再次失败,谷歌搜索但仍然没有进展)
Failed to connect to www-origin.coursera.org port 443: Timed out
[error] submission with curl() was not successful
Function: submitWithConfiguration>validateResponse
FileName: C:\Users\Dhruv\Desktop\ML octave\machine-learning-ex1\ex1\lib\submitWithConfiguration.m
LineNumber: 158
function response = validateResponse(resp)
% test if the response is json or an HTML page
isJson = length(resp) > 0 && resp(1) == '{';
isHtml = findstr(lower(resp), '<html');
if (isJson)
response = resp;
elseif (isHtml)
% the response is html, so it's probably an error message
printHTMLContents(resp);
error('Grader response is an HTML message');
else
error('Grader sent no response');
end
end
请帮忙
解决方案
好吧,这很奇怪,但是,
我想通了,之前我使用我的学院网络提交作业,但是当我使用我的移动数据时,我能够提交相同的内容。我想我的学院网络一定有一些限制。
推荐阅读
- javascript - 为什么我的正则表达式在 string.replace() 中有效,但在 RegExp() 中无效?在 JavaScript 中
- excel - VBA中的“对于每个” - 看起来像代码执行任务两次
- javascript - 为什么 Javascript 中的函数是同步的?
- python - 从外键类型的字段中选择值
- c++ - 为 Windows SDK 版本 8.1 编译并在 Windows 10 上运行
- c++ - OpenGL VertexBuffer 类重定义和模板方法错误
- swift - 如何在新对象的属性上设置 didSet
- database - 事务传播模式(支持、requires_new 等)如何影响数据库连接池?
- javascript - 为什么当 redux 状态改变时 props.screenProps 变得未定义
- c - 具有奇怪结果的数组分配