Skip to content
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]: 私有的倉庫無法顯示 #76

Closed
RUTHDOMINGUEZ8216 opened this issue Dec 10, 2023 · 2 comments
Closed

[Bug]: 私有的倉庫無法顯示 #76

RUTHDOMINGUEZ8216 opened this issue Dec 10, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@RUTHDOMINGUEZ8216
Copy link

PicHoro的版本

V2.2.3

系统信息

Samsung zfold 3

问题重现 | Bug reproduce

Github圖床的私有倉庫...沒有辦法在文件管理的頁面顯示出來
如圖所示,應該有一個私有倉庫PersonalImagevault 才對可是沒有顯示出來...無法管理。如果用以前的flutter picgo 可以顯示

Screenshot_20231210_090944.jpg
Screenshot_20231210_091022.jpg
Screenshot_20231210_091128_Brave.jpg

相关日志 | Logs

39
记录时间: 10 December 2023 08:10:06 AM
类名: GithubImageUploadUtils
方法名: deleteApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: null
name: Screenshot_20231207_192224_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
{message: Not Found, documentation_url: https://docs.github.com/rest/repos/contents#delete-a-file}

38
记录时间: 09 December 2023 07:30:52 PM
类名: GithubImageUploadUtils
方法名: deleteApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: null
name: Screenshot_20231207_192224_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
{message: Not Found, documentation_url: https://docs.github.com/rest/repos/contents#delete-a-file}

37
记录时间: 09 December 2023 07:30:45 PM
类名: GithubImageUploadUtils
方法名: deleteApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: null
name: Screenshot_20231207_192224_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
{message: Not Found, documentation_url: https://docs.github.com/rest/repos/contents#delete-a-file}

36
记录时间: 08 December 2023 03:03:51 PM
类名: HomePage
方法名: _initIntent
日志级别: LogLevel.ERROR
日志内容: 参数:

intent: Intent(fromPackageName: null, fromSignatures: null, action: android.intent.action.MAIN, data: null, categories: [android.intent.category.LAUNCHER], extra: null)

错误信息:
Null check operator used on a null value

是否DIO错误:
false

DIO报错信息:

35
记录时间: 08 December 2023 03:00:24 PM
类名: UploadTask
方法名: start
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/Movies/Telegram/VID_20231029_082217_059.mp4
fileName: VID_20231029_082217_059.mp4

错误信息:
Exception: 上传失败

是否DIO错误:
false

DIO报错信息:

34
记录时间: 08 December 2023 03:00:24 PM
类名: GithubImageUploadUtils
方法名: uploadApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/Movies/Telegram/VID_20231029_082217_059.mp4
name: VID_20231029_082217_059.mp4

错误信息:
DioException [bad response]: The request returned an invalid status code of 422.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 422.
{message: Invalid request.

"sha" wasn't supplied., documentation_url: https://docs.github.com/rest/repos/contents#create-or-update-file-contents}

33
记录时间: 08 December 2023 02:53:12 PM
类名: GithubImageUploadUtils
方法名: deleteApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: null
name: Screenshot_20231207_192224_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
{message: Not Found, documentation_url: https://docs.github.com/rest/repos/contents#delete-a-file}

32
记录时间: 08 December 2023 02:48:29 PM
类名: GithubImageUploadUtils
方法名: deleteApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: null
name: Screenshot_20231207_192224_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
{message: Not Found, documentation_url: https://docs.github.com/rest/repos/contents#delete-a-file}

31
记录时间: 08 December 2023 02:48:17 PM
类名: GithubImageUploadUtils
方法名: deleteApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: null
name: Screenshot_20231207_192224_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
{message: Not Found, documentation_url: https://docs.github.com/rest/repos/contents#delete-a-file}

30
记录时间: 08 December 2023 02:47:15 PM
类名: GithubImageUploadUtils
方法名: deleteApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: null
name: Screenshot_20231207_192224_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
{message: Not Found, documentation_url: https://docs.github.com/rest/repos/contents#delete-a-file}

29
记录时间: 08 December 2023 02:14:09 PM
类名: githubDownloadManager
方法名: download
日志级别: LogLevel.ERROR
日志内容: 参数:

url: https://ghproxy.com/https://raw.githubusercontent.com/Superwill8216/Img/main/white-tiles-designify%20(1).png?token=BBO4FEDHGZ6WLV6YX36YPYLFOKZ6E
savePath: /storage/emulated/0/Download/PicHoro/Download/github/Superwill8216/Img/white-tiles-designify%20(1).png

错误信息:
DioException [connection timeout]: The request connection took longer than 0:00:00.000000. It was aborted.
Error: SocketException: Connection timed out (OS Error: Connection timed out, errno = 110), address = ghproxy.com, port = 49110

是否DIO错误:
true

DIO报错信息:
The request connection took longer than 0:00:00.000000. It was aborted.

28
记录时间: 08 December 2023 02:12:54 PM
类名: githubDownloadManager
方法名: download
日志级别: LogLevel.ERROR
日志内容: 参数:

url: https://ghproxy.com/https://raw.githubusercontent.com/Superwill8216/Img/main/white-tiles-designify%20(1).png?token=BBO4FEDHGZ6WLV6YX36YPYLFOKZ6E
savePath: /storage/emulated/0/Download/PicHoro/Download/github/Superwill8216/Img/white-tiles-designify%20(1).png

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
404: Not Found

27
记录时间: 08 December 2023 02:12:53 PM
类名: githubDownloadManager
方法名: download
日志级别: LogLevel.ERROR
日志内容: 参数:

url: https://ghproxy.com/https://raw.githubusercontent.com/Superwill8216/Img/main/white-tiles-designify%20(1).png?token=BBO4FEDHGZ6WLV6YX36YPYLFOKZ6E
savePath: /storage/emulated/0/Download/PicHoro/Download/github/Superwill8216/Img/white-tiles-designify%20(1).png

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
404: Not Found

26
记录时间: 08 December 2023 02:12:51 PM
类名: githubDownloadManager
方法名: download
日志级别: LogLevel.ERROR
日志内容: 参数:

url: https://ghproxy.com/https://raw.githubusercontent.com/Superwill8216/Img/main/white-tiles-designify%20(1).png?token=BBO4FEDHGZ6WLV6YX36YPYLFOKZ6E
savePath: /storage/emulated/0/Download/PicHoro/Download/github/Superwill8216/Img/white-tiles-designify%20(1).png

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
404: Not Found

25
记录时间: 08 December 2023 11:54:19 AM
类名: ImagePage
方法名: _imageFromNetwork
日志级别: LogLevel.ERROR
日志内容: 参数:

url: {"github":{"branch":"master","customUrl":"","path":"personal/","repo":"WillyWang8216/PersonalImagevault","token":"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"}}

错误信息:
FormatException: Scheme not starting with alphabetic character (at character 1)
{"github":{"branch":"master","customUrl":"","path":"personal/","repo":"Will...
^

是否DIO错误:
false

DIO报错信息:

24
记录时间: 08 December 2023 10:58:37 AM
类名: HomePage
方法名: _initIntent
日志级别: LogLevel.ERROR
日志内容: 参数:

intent: Intent(fromPackageName: null, fromSignatures: null, action: android.intent.action.MAIN, data: null, categories: [android.intent.category.LAUNCHER], extra: null)

错误信息:
Null check operator used on a null value

是否DIO错误:
false

DIO报错信息:

23
记录时间: 08 December 2023 10:54:48 AM
类名: UploadTask
方法名: start
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20231207_203412_Brave.jpg
fileName: Screenshot_20231207_203412_Brave.jpg

错误信息:
Exception: 上传失败

是否DIO错误:
false

DIO报错信息:

22
记录时间: 08 December 2023 10:54:48 AM
类名: GithubImageUploadUtils
方法名: uploadApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20231207_203412_Brave.jpg
name: Screenshot_20231207_203412_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
{message: Branch main not found, documentation_url: https://docs.github.com/rest/repos/contents#create-or-update-file-contents}

21
记录时间: 08 December 2023 10:54:29 AM
类名: UploadTask
方法名: start
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20231207_192224_Brave.jpg
fileName: Screenshot_20231207_192224_Brave.jpg

错误信息:
Exception: 上传失败

是否DIO错误:
false

DIO报错信息:

20
记录时间: 08 December 2023 10:54:29 AM
类名: GithubImageUploadUtils
方法名: uploadApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20231207_192224_Brave.jpg
name: Screenshot_20231207_192224_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
{message: Branch main not found, documentation_url: https://docs.github.com/rest/repos/contents#create-or-update-file-contents}

19
记录时间: 08 December 2023 10:54:13 AM
类名: UploadTask
方法名: start
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20231207_192224_Brave.jpg
fileName: Screenshot_20231207_192224_Brave.jpg

错误信息:
Exception: 上传失败

是否DIO错误:
false

DIO报错信息:

18
记录时间: 08 December 2023 10:54:13 AM
类名: GithubImageUploadUtils
方法名: uploadApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20231207_192224_Brave.jpg
name: Screenshot_20231207_192224_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 404.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 404.
{message: Branch main not found, documentation_url: https://docs.github.com/rest/repos/contents#create-or-update-file-contents}

17
记录时间: 07 December 2023 08:37:27 PM
类名: HomePage
方法名: _initIntent
日志级别: LogLevel.ERROR
日志内容: 参数:

intent: Intent(fromPackageName: null, fromSignatures: null, action: android.intent.action.MAIN, data: null, categories: [android.intent.category.LAUNCHER], extra: null)

错误信息:
Null check operator used on a null value

是否DIO错误:
false

DIO报错信息:

16
记录时间: 07 December 2023 07:22:39 PM
类名: HomePage
方法名: _initIntent
日志级别: LogLevel.ERROR
日志内容: 参数:

intent: Intent(fromPackageName: null, fromSignatures: null, action: android.intent.action.MAIN, data: null, categories: [android.intent.category.LAUNCHER], extra: null)

错误信息:
Null check operator used on a null value

是否DIO错误:
false

DIO报错信息:

15
记录时间: 07 December 2023 10:49:43 AM
类名: HomePage
方法名: _initIntent
日志级别: LogLevel.ERROR
日志内容: 参数:

intent: Intent(fromPackageName: null, fromSignatures: null, action: android.intent.action.MAIN, data: null, categories: [android.intent.category.LAUNCHER], extra: null)

错误信息:
Null check operator used on a null value

是否DIO错误:
false

DIO报错信息:

14
记录时间: 06 December 2023 10:07:55 PM
类名: HomePage
方法名: _initIntent
日志级别: LogLevel.ERROR
日志内容: 参数:

intent: Intent(fromPackageName: null, fromSignatures: null, action: android.intent.action.MAIN, data: null, categories: [android.intent.category.LAUNCHER], extra: null)

错误信息:
Null check operator used on a null value

是否DIO错误:
false

DIO报错信息:

13
记录时间: 06 December 2023 10:04:11 PM
类名: HomePage
方法名: _initIntent
日志级别: LogLevel.ERROR
日志内容: 参数:

intent: Intent(fromPackageName: null, fromSignatures: null, action: android.intent.action.MAIN, data: null, categories: [android.intent.category.LAUNCHER], extra: null)

错误信息:
Null check operator used on a null value

是否DIO错误:
false

DIO报错信息:

12
记录时间: 06 December 2023 11:28:48 AM
类名: HomePage
方法名: _initIntent
日志级别: LogLevel.ERROR
日志内容: 参数:

intent: Intent(fromPackageName: null, fromSignatures: null, action: android.intent.action.MAIN, data: null, categories: [android.intent.category.LAUNCHER], extra: null)

错误信息:
Null check operator used on a null value

是否DIO错误:
false

DIO报错信息:

11
记录时间: 06 December 2023 11:15:15 AM
类名: UploadTask
方法名: start
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20231206_083849_Brave.jpg
fileName: Screenshot_20231206_083849_Brave.jpg

错误信息:
Exception: 上传失败

是否DIO错误:
false

DIO报错信息:

10
记录时间: 06 December 2023 11:15:15 AM
类名: GithubImageUploadUtils
方法名: uploadApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20231206_083849_Brave.jpg
name: Screenshot_20231206_083849_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 422.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 422.
{message: Invalid request.

"sha" wasn't supplied., documentation_url: https://docs.github.com/rest/repos/contents#create-or-update-file-contents}

9
记录时间: 06 December 2023 11:14:58 AM
类名: UploadTask
方法名: start
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20231206_083849_Brave.jpg
fileName: Screenshot_20231206_083849_Brave.jpg

错误信息:
Exception: 上传失败

是否DIO错误:
false

DIO报错信息:

8
记录时间: 06 December 2023 11:14:58 AM
类名: GithubImageUploadUtils
方法名: uploadApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20231206_083849_Brave.jpg
name: Screenshot_20231206_083849_Brave.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 422.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 422.
{message: Invalid request.

"sha" wasn't supplied., documentation_url: https://docs.github.com/rest/repos/contents#create-or-update-file-contents}

7
记录时间: 06 December 2023 11:12:02 AM
类名: UploadTask
方法名: start
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /data/user/0/com.example.horopic/cache/Web1701832280213wnOMK.jpg
fileName: Web1701832280213wnOMK.jpg

错误信息:
Exception: 上传失败

是否DIO错误:
false

DIO报错信息:

6
记录时间: 06 December 2023 11:12:02 AM
类名: GithubImageUploadUtils
方法名: uploadApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /data/user/0/com.example.horopic/cache/Web1701832280213wnOMK.jpg
name: Web1701832280213wnOMK.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 422.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 422.
{message: Invalid request.

"sha" wasn't supplied., documentation_url: https://docs.github.com/rest/repos/contents#create-or-update-file-contents}

5
记录时间: 06 December 2023 11:11:56 AM
类名: UploadTask
方法名: start
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /data/user/0/com.example.horopic/cache/Web1701832290787xwheM.jpg
fileName: Web1701832290787xwheM.jpg

错误信息:
Exception: 上传失败

是否DIO错误:
false

DIO报错信息:

4
记录时间: 06 December 2023 11:11:56 AM
类名: GithubImageUploadUtils
方法名: uploadApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /data/user/0/com.example.horopic/cache/Web1701832290787xwheM.jpg
name: Web1701832290787xwheM.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 422.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 422.
{message: Invalid request.

"sha" wasn't supplied., documentation_url: https://docs.github.com/rest/repos/contents#create-or-update-file-contents}

3
记录时间: 06 December 2023 11:11:55 AM
类名: UploadTask
方法名: start
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /data/user/0/com.example.horopic/cache/Web1701832280213wnOMK.jpg
fileName: Web1701832280213wnOMK.jpg

错误信息:
Exception: 上传失败

是否DIO错误:
false

DIO报错信息:

2
记录时间: 06 December 2023 11:11:55 AM
类名: GithubImageUploadUtils
方法名: uploadApi
日志级别: LogLevel.ERROR
日志内容: 参数:

path: /data/user/0/com.example.horopic/cache/Web1701832280213wnOMK.jpg
name: Web1701832280213wnOMK.jpg

错误信息:
DioException [bad response]: The request returned an invalid status code of 422.

是否DIO错误:
true

DIO报错信息:
The request returned an invalid status code of 422.
{message: Invalid request.

"sha" wasn't supplied., documentation_url: https://docs.github.com/rest/repos/contents#create-or-update-file-contents}

1
记录时间: 06 December 2023 08:58:35 AM
类名: HomePage
方法名: _initIntent
日志级别: LogLevel.ERROR
日志内容: 参数:

intent: Intent(fromPackageName: null, fromSignatures: null, action: android.intent.action.MAIN, data: null, categories: [android.intent.category.LAUNCHER], extra: null)

错误信息:
Null check operator used on a null value

是否DIO错误:
false

DIO报错信息:

@RUTHDOMINGUEZ8216 RUTHDOMINGUEZ8216 added the bug Something isn't working label Dec 10, 2023
@RUTHDOMINGUEZ8216
Copy link
Author

是了一下別的github倉庫
同樣的設置和同樣的令牌權限,在另外一個倉庫也是私有的,就可以顯示 好奇怪

Screenshot_20231210_095348.jpg
Screenshot_20231210_095408.jpg

@Kuingsmile
Copy link
Owner

这里判断是否获取私有仓库的时候严格判断了填写的用户名和api接口获取的用户名是否一致,包括大小写,所以标题上显示的用户名是
image
但配置里的用户名是
image

有一个字母大小写不一致,所以没有去获取私有仓库,W改成小写应该就可以了

考虑到github用户名实际并不区分大小写,这里会改下判断逻辑,改成都转换为小写再对比

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants