-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]upload and patch err:TypeError: Cannot read property 'map' of undefined #874
Comments
先在平台上启动服务再试一试 |
谢谢,确实,我在web页面创建了应用后,再命令行上传发布包,就过了。
< HTTP/1.1 100 Continue
|
网页上可以正常上传发布包,命令行就,Method Not Allow |
Method Not Allow 貌似不影响使用, 这个原因未知 |
谢谢,网页上版本确实更新了 |
通过命令行make HttpServer-upload 上传发布包时总是报错
upload and patch err:TypeError: Cannot read property 'map' of undefined
cmake:
DL380-Gen9:~/TarsCpp/examples/HttpDemo/build$ cat run-upload-HttpServer.cmake
EXECUTE_PROCESS(COMMAND /usr/bin/cmake -E echo http://192.168.120.50:3000/api/upload_and_publish -Fsuse=@HttpServer.tgz -Fapplication=HttpDemo -Fmodule_name=HttpServer -Fcomment=developer-auto-upload)
EXECUTE_PROCESS(COMMAND curl http://192.168.120.50:3000/api/upload_and_publish?ticket= -Fsuse=@HttpServer.tgz -Fapplication=HttpDemo -Fmodule_name=HttpServer -Fcomment=developer-auto-upload)
EXECUTE_PROCESS(COMMAND /usr/bin/cmake -E echo
---------------------------------------------------------------------------)
上传:
DL380-Gen9:~/TarsCpp/examples/HttpDemo/build$ make HttpServer-upload
[ 60%] Built target HttpServer
[ 80%] call /home/admin/TarsCpp/examples/HttpDemo/build/run-tar-HttpServer.cmake
mkdir -p /home/admin/TarsCpp/examples/HttpDemo/build/tmp/HttpServer
rm -rf /home/admin/TarsCpp/examples/HttpDemo/build/tmp/HttpServer
copy bin/HttpServer /home/admin/TarsCpp/examples/HttpDemo/build/tmp/HttpServer/
HttpServer/
HttpServer/HttpServer
[ 80%] Built target HttpServer-tar
[100%] upload HttpDemo.HttpServer.tgz and publish...
http://192.168.120.50:3000/api/upload_and_publish -Fsuse=@HttpServer.tgz -Fapplication=HttpDemo -Fmodule_name=HttpServer -Fcomment=developer-auto-upload
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 879k 100 71 100 879k 35 433k 0:00:02 0:00:02 --:--:-- 433k
upload and patch err:TypeError: Cannot read property 'map' of undefined
[100%] Built target HttpServer-upload
怀疑是实际调用的shell命令:
curl http://192.168.120.50:3000/api/upload_and_publish?ticket= -Fsuse=@HttpServer.tgz -Fapplication=HttpDemo -Fmodule_name=HttpServer -Fcomment=developer-auto-upload
ticket后面的空格引起的?
The text was updated successfully, but these errors were encountered: