aliyun ossbrowser 坑、kpi 项目

工作中使用过程中遇到的问题
更新于: 2023-12-13 08:38:55

现场

总结: aliyun 这个 ossbrowser 工具,存在 BUG,估计又是 kpi 项目。

ossbrowser 修改文件报错

原因

使用 ossbrowser 编辑之后,会产生一些空白,这些空白会造成文件损坏。

解决方案

  • 不要使用他提供的编辑器,而是直接使用 vscode 等主流编辑器编辑文件,再刷新 json

请求对比

请求Response
正常
curl 'https://web-assets.alo7.com/assets/text/ai-chatbot/white-list.json'

HTTP/1.1 304 Not Modified
Server: Tengine
Content-Type: application/json
Connection: keep-alive
Date: Wed, 13 Dec 2023 00:38:43 GMT
x-oss-request-id: 6578FD13E1E48037367208CE
x-oss-cdn-auth: success
Accept-Ranges: bytes
x-oss-object-type: Normal
x-oss-storage-class: Standard
Content-MD5: P9SH8wvH2WpZnp9Sa4Mo7g==
x-oss-server-time: 2
Ali-Swift-Global-Savetime: 1702427923
Via: cache49.l2cn2647[152,152,304-0,M], cache16.l2cn2647[154,0], vcache22.cn6013[166,165,304-0,H], vcache28.cn6013[170,0]
ETag: "3FD487F30BC7D96A599E9F526B8328EE"
Last-Modified: Tue, 12 Dec 2023 09:01:44 GMT
Vary: Accept-Encoding
x-oss-hash-crc64ecma: 3025823504286340391
Content-Encoding: gzip
Age: 0
X-Cache: HIT TCP_REFRESH_HIT dirn:-2:-2
Access-Control-Allow-Methods: *
Access-Control-Allow-Origin: *
Timing-Allow-Origin: *
EagleId: 3daa513017024279230932473e


不正常
curl 'https://web-assets.alo7.com/assets/text/ai-chatbot/white-list1.json'

HTTP/1.1 200 OK
Server: Tengine
Content-Type: application/json
Content-Length: 1071
Connection: keep-alive
Date: Wed, 13 Dec 2023 00:36:10 GMT
x-oss-request-id: 6578FC7A5FCE0B3436BDB93C
x-oss-cdn-auth: success
Accept-Ranges: bytes
x-oss-object-type: Normal
x-oss-storage-class: Standard
Content-MD5: ympKE3W+eGsgtVIXJxrYFQ==
x-oss-server-time: 18
Ali-Swift-Global-Savetime: 1702427770
Via: cache24.l2cn2647[83,82,304-0,M], cache76.l2cn2647[84,0], vcache14.cn6013[121,120,200-0,H], vcache15.cn6013[122,0]
ETag: "CA6A4A1375BE786B20B55217271AD815"
Last-Modified: Tue, 12 Dec 2023 08:53:18 GMT
x-oss-hash-crc64ecma: 4118972498454679162
Content-Encoding: gzip
Age: 0
X-Cache: HIT TCP_REFRESH_HIT dirn:5:885735464
X-Swift-SaveTime: Wed, 13 Dec 2023 00:36:10 GMT
X-Swift-CacheTime: 1
Access-Control-Allow-Methods: *
Access-Control-Allow-Origin: *
Timing-Allow-Origin: *
EagleId: 3daa512317024277707177035e

参考