Https规范中的接口格式{URI-scheme}://{Endpoint}/{{module}}/api/{api...

Completed

Comments

14 comments

  • 308620434

    我的api模块配置为http:192.168.0.103/DroneController/,(虽然规范里说硬性要求https,但http也能获取到请求)

    但是,从pilot2过来的请求中,为http:192.168.0.103/wayline/api/v1/workspaces/7595646e-c0f0-74b6-b700-3135606aafe4/waylines

    丢失了中间的DroneController。

    唯一有DroneController的请求为 获取临时凭证的的第三次请求。这应该是pilot2的bug吧?令人十分困扰

    服务器请求log文件:

    192.168.0.110 - - [24/May/2022:16:22:13 +0800] "GET /DroneController/index.php?r=pilot/login HTTP/1.1" 200 12751
    192.168.0.110 - - [24/May/2022:16:22:14 +0800] "POST /storage/api/v1/workspaces/7595646e-c0f0-74b6-b700-3135606aafe4/sts HTTP/1.1" 404 274
    192.168.0.110 - - [24/May/2022:16:22:14 +0800] "GET /manage/api/v1/workspaces/7595646e-c0f0-74b6-b700-3135606aafe4/devices/topologies HTTP/1.1" 404 274
    192.168.0.110 - - [24/May/2022:16:22:14 +0800] "GET /manage/api/v1/workspaces/7595646e-c0f0-74b6-b700-3135606aafe4/devices/topologies HTTP/1.1" 404 274
    192.168.0.110 - - [24/May/2022:16:22:14 +0800] "POST /storage/api/v1/workspaces/7595646e-c0f0-74b6-b700-3135606aafe4/sts HTTP/1.1" 404 274
    192.168.0.110 - - [24/May/2022:16:22:14 +0800] "POST /storage/api/v1/workspaces/7595646e-c0f0-74b6-b700-3135606aafe4/sts HTTP/1.1" 404 274
    192.168.0.110 - - [24/May/2022:16:22:14 +0800] "POST /DroneController/storage/api/v1/workspaces/7595646e-c0f0-74b6-b700-3135606aafe4/sts HTTP/1.1" 200 1212
    192.168.0.110 - - [24/May/2022:16:22:14 +0800] "GET /map/api/v1/workspaces/7595646e-c0f0-74b6-b700-3135606aafe4/element-groups?is_distributed=true HTTP/1.1" 404 274
    192.168.0.110 - - [24/May/2022:16:21:48 +0800] "GET /wayline/api/v1/workspaces/7595646e-c0f0-74b6-b700-3135606aafe4/waylines?file_type=5&key=&favorited=false&order_by=update_time%20desc&page_size=9&page=1 HTTP/1.1" 404 274
    0
    Comment actions Permalink
  • DJI Developer Support
    有可能是bug,麻烦提供一下pilot2的日志,如果设置的参数为http:192.168.0.103/DroneController/,正常的请求是会带上DroneController/的。 日志路径:/Android/data/com.dji.industry.pilot/files/LOG对应的日期文件夹。/sdcard/DJI/com.dji.industry.pilot/LOG/日期
    0
    Comment actions Permalink
  • 308620434

    链接:https://pan.baidu.com/s/13Hp380zYcb8gEgAbq61CfQ?pwd=exbj 
    提取码:exbj

    /Android/data/com.dji.industry.pilot/files/LOG下的所有文件,因为在这下面并没有找到/sdcard文件夹

    0
    Comment actions Permalink
  • DJI Developer Support
    /sdcard 是指根目录,在根目录下找 DJI 这个文件夹,/DJI/com.dji.industry.pilot/LOG/日期,可以上传到下方的链接中。 https://pan-sec.djicorp.com/s/xGSeDtMkS9zg7ip 密码:dji123
    0
    Comment actions Permalink
  • 308620434

    在/sdcard/DJI/com.dji.industry.pilot/下并没有找到LOG文件;pilot2版本4.1.0.4_2318a(49982)

    0
    Comment actions Permalink
  • DJI Developer Support
    /Android/data/com.dji.industry.pilot/files/LOG/日期 这个日期的文件夹是不是错了?上传的是6月1号的日志,里面没有数据啊。之前的问题不是5月24号出现的吗。 ![](https://djisdksupport.zendesk.com/attachments/token/3k53KSzxe4bofw6k8hTJmdO6r/?name=image.png) https://pan-sec.djicorp.com/s/xGSeDtMkS9zg7ip 密码:dji123
    0
    Comment actions Permalink
  • 308620434

    已将5月23和5月24的文件上传,复制遥控器文件时发送错误:
    http://192.168.0.103/DroneController/index.php?r=pilot/login是第三方云的url,不知是否有关系

    0
    Comment actions Permalink
  • DJI Developer Support
    https://pan-sec.djicorp.com/s/xGSeDtMkS9zg7ip 这里没有看到你上传的文件,检查一下是否上传成功了,或者你先改个文件名再复制试试。
    0
    Comment actions Permalink
  • 308620434

    已重新上传,文件名:pilot2 5月23-24日志

    0
    Comment actions Permalink
  • DJI Developer Support
    你这几次的日志中,从这个文件夹(platform_http___192_168_0_103_DroneController_index_phpr=pilot_login)往后的文件都没有,包括这个文件夹(platform_http___192_168_0_103_DroneController_index_phpr=pilot_login)里的内容,好像复制到这个文件夹后就终止了,你检查一下遥控器里的文件。
    0
    Comment actions Permalink
  • 308620434

    已将文件5-23/24文件重新上传,缺失原因:文件夹(platform_http___192_168_0_103_DroneController_index_phpr=pilot_login)整个复制会报错,只能将其目录文件一个一个复制过来。
    另:使用直播功能时pilot2闪退。具体:从服务器发起直播(发送method=live_start_push的指令),pilot2正常执行,可支持获得直播画面,但过了约二三十秒后,pilot2就闪退,多次如此。附上6-07日志

    0
    Comment actions Permalink
  • DJI Developer Support
    host参数会自动截取掉,这是一个bug,pilot2直播闪退是一个已知bug,下个版本会修复。
    0
    Comment actions Permalink
  • DJI Developer Support
    需要把 api接口之前的 “/media/api/v1/workspaces” 变成 “media/api/v1/workspaces” ![](https://djisdksupport.zendesk.com/attachments/token/mJCwtTFeEK9C3ClIopvpMinuS/?name=image.png)
    0
    Comment actions Permalink

Please sign in to leave a comment.