TarsCloud / Tars

Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.
BSD 3-Clause "New" or "Revised" License
9.78k stars 2.08k forks source link

[BUG]upload and patch err:TypeError: Cannot read property 'map' of undefined #874

Open Eumenidies opened 2 years ago

Eumenidies commented 2 years ago

通过命令行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后面的空格引起的?

ruanshudong commented 2 years ago

先在平台上启动服务再试一试

Eumenidies commented 2 years ago

谢谢,确实,我在web页面创建了应用后,再命令行上传发布包,就过了。 不过,返回Method Not Allowed了

172.25.0.3 EM_I_SUCCESS startServer [HttpServer.HttpServer] from 172.25.0.3 :server is activating, please check:

Eumenidies commented 2 years ago

网页上可以正常上传发布包,命令行就,Method Not Allow

ruanshudong commented 2 years ago

Method Not Allow 貌似不影响使用, 这个原因未知

Eumenidies commented 2 years ago

Method Not Allow 貌似不影响使用, 这个原因未知

谢谢,网页上版本确实更新了