GithubHelp home page GithubHelp logo

picgo-plugin-gitee-uploader's People

Contributors

lizhuangs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

picgo-plugin-gitee-uploader's Issues

上传图片出现错误 "message":"404 Project Not Found"

搜索过已经关闭的 后依然没有找到答案,所以才发了一个新的 issue。

Bug Report

PicGo 的版本: 2.3.0 beta3 ,第三方GITEE插件
Mac 版本

想配合typora + picgo + gitee 图床, 出现以下问题,请大佬看下什么问题,谢谢!

-----Error Stack Begin------
StatusCodeError: 404 - {"message":"404 Project Not Found"}
at new StatusCodeError (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/request/request.js:185:22)
at Request.emit (events.js:200:13)
at Request. (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/request/request.js:1161:10)
at Request.emit (events.js:200:13)
at IncomingMessage. (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:288:20)
at IncomingMessage.emit (events.js:205:15)
-------Error Stack End-------
2020-08-20 22:06:39 [PicGo SUCCESS]

【bug】重命名添加了文件夹目录路径,上传成功后返回图片url不包含文件夹路径

问题描述
使用gitee作为图床,上传图片进行重命名时,添加了文件夹作为目录,上传后gitee仓库成功自动创建文件夹并且存储了图片,但是返回的图片url并不含文件夹目录。

PicGo 的相关信息
PicGo版本:PicGo-Setup-2.3.0-beta.8-x64.exe
所在平台:windows10

问题重现
1、上传图片进行重命名,添加存放文件夹目录test。
image

2、上传成功后查看gitee仓库,自动生成test并且图片上传成功。
image

3、返回的图片url并不包含test这一目录。
image

可以支持自定义分支参数吗?

feature request 关联到现有issue么
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

你希望的解决方案
A clear and concise description of what you want to happen.

你是基于什么考虑需要这个的
A clear and concise description of any alternative solutions or features you've considered.

其它信息
Add any other context or screenshots about the feature request here.

[Feature] 上传前检测文件类型是否为图片

你希望的解决方案
对文件进行上传前通过扩展名等手段检测是否为图片,肯定的情况下才上传。

你是基于什么考虑需要这个的
PicGo在文件右键菜单注入了选项,容易误点,导致非图片型文件的误上传。

demo

PicGo应用端下载1.1.2版本插件后直接提示错误

  • PicGo应用端下载1.1.2版本插件后直接提示错误,重启后不再显示插件,需要重新下载(循环)。
  • Typora端设置Command line后上传图片显示错误,疑与上一个是同一问题(无法调用)。

PicGo-Core (Command line) 错误提示如下

[PicGo INFO]: Before transform
[PicGo INFO]: Transforming...
[PicGo INFO]: Before upload
[PicGo INFO]: Uploading...
[PicGo WARN]: Can't find uploader - smms, swtich to default uploader - smms
[PicGo WARN]: failed
[PicGo ERROR]: Error: Can't find smms config, please provide api token, see https://sm.ms/home/apitoken

PicGo-Core (Command line) 配置信息如下

{
  "picBed": {
    "current": "gitee",
    "gitee": {
      "repo": "abc",
      "branch": "images",
      "token": "123",
      "path": "autoupload",
      "customPath": "",
      "customUrl": ""
    },
    "uploader": "gitee",
    "transformer": "path"
  },
  "picgoPlugins": {
    "picgo-plugin-gitee-uploader": true
  },
}

[Feature]目录可以遍历同步子目录

你希望的解决方案
子目录也可以同步

你是基于什么考虑需要这个的
相册管理,方便管理历史图片

其它信息
考虑性能问题,比如遍历了上w张图片的情况。

picGo2.2.2版本无法搜索到此版本

描述bug
系统和软件等环境的版本
具体的bug信息.

步骤
具体步骤

截图
如果有截图的话

Additional context
Add any other context about the problem here.

[BUG]Cannot read property 'webContents' of null

[PicGo SUCCESS]: 
https://gitee.com/jay763190097/myhomepage/raw/master/images/2020/07/%E6%88%AA%E5%9B%BE%E5%BD%95%E5%B1%8F_%E9%80%89%E6%8B%A9%E5%8C%BA%E5%9F%9F_20200627000227.png
(node:16673) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'webContents' of null
    at xt (/tmp/.mount_PicGo-o6QXdU/resources/app.asar/background.js:16:35102)
    at processTicksAndRejections (internal/process/task_queues.js:89:5)
(node:16673) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'webContents' of null
    at xt (/tmp/.mount_PicGo-o6QXdU/resources/app.asar/background.js:16:35102)
    at processTicksAndRejections (internal/process/task_queues.js:89:5)
(node:16673) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:16673) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:16673) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:16673) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

关于配置使用

你好,我没看懂gitee插件怎么使用。
github倒是可以配置token,直接使用,
这个插件呢

[BUG]重新配置参数后报404错误,已解决

描述bug
系统和软件等环境的版本
win10
image

具体的bug信息.
一直设置为开机启动picgo,最初使用这个插件没有问题。一段时间不用后,配置信息被清空,然后重新配置好后一直报404错误
截图

只有日志截图
image

我自己处理了,重新安装插件,就可以了
image

这个不是紧急问题,只是为各位提供一个参考。 长期使用的话应该不会出现这种配置信息意外清空的情况

[BUG]本地/在线装插件均失败

描述bug
picgo 2.30 beta 7 版本

本地安装以及picgo内在线安装该插件 均会报这个错误 我没有动过这个安装文件 但是每次它总会显示缺少index js 文件
Error: Cannot find module 'C:\Users\xueto\AppData\Roaming\picgo\node_modules\picgo-plugin-gitee-uploader\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (internal/modules/cjs/loader.js:232:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:369:18)
at Module._resolveFilename (internal/modules/cjs/loader.js:614:27)
at Function.Module._resolveFilename (C:\Program Files\PicGo\resources\electron.asar\common\reset-search-paths.js:41:16)
at Function.Module._load (internal/modules/cjs/loader.js:531:27)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at PluginLoader.getPlugin (C:\Program Files\PicGo\resources\app.asar\node_modules\picgo\dist\src\lib\PluginLoader.js:125:24)
at PluginLoader.registerPlugin (C:\Program Files\PicGo\resources\app.asar\node_modules\picgo\dist\src\lib\PluginLoader.js:78:26)
at C:\Program Files\PicGo\resources\app.asar\node_modules\picgo\dist\src\lib\PluginHandler.js:40:43
-------Error Stack End-------

我去这个路径下也找了 但是发现只有index ts文件 并没有index js 文件 电脑装过node js npm也可正常运行
image

太厉害了,感谢大佬

feature request 关联到现有issue么
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

你希望的解决方案
A clear and concise description of what you want to happen.

你是基于什么考虑需要这个的
A clear and concise description of any alternative solutions or features you've considered.

其它信息
Add any other context or screenshots about the feature request here.

点击安装gitee-uploader等待一段时间后没反应

image
小白请教一个安装插件问题。。

在点击安装gitee-uploader等待一段时间后没反应,也不提示需要安装node,重启Picgo和重启电脑后,图床设置依然没有Gitee的列表。
image
以上是我node和npm的版本。
大佬能帮忙看下什么问题吗

[BUG]gitee图床提交无端404失败

描述bug
Windows 10, Picgo2.3.0

一两个月前一直能正常转化图片链接到gitee,最近再上传图片就报404错误了,试着重装gitee-loader,重装picgo都无法解决问题,看了下令牌文件的修改日期在最后一次上传图片之后排除了令牌被修改的问题,由报错文件看起来像Picgo内部的问题或者是gitee-loader的问题,具体未知

------Error Stack Begin------
StatusCodeError: 404 - {"status":"404","error":"Not Found"}
    at new StatusCodeError (C:\Users\hw\AppData\Local\Programs\PicGo\resources\app.asar\node_modules\request-promise-core\lib\errors.js:32:15)
    at Request.plumbing.callback (C:\Users\hw\AppData\Local\Programs\PicGo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:104:33)
    at Request.RP$callback [as _callback] (C:\Users\hw\AppData\Local\Programs\PicGo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:46:31)
    at Request.self.callback (C:\Users\hw\AppData\Local\Programs\PicGo\resources\app.asar\node_modules\request\request.js:185:22)
    at Request.emit (events.js:200:13)
    at Request.<anonymous> (C:\Users\hw\AppData\Local\Programs\PicGo\resources\app.asar\node_modules\request\request.js:1154:10)
    at Request.emit (events.js:200:13)
    at IncomingMessage.<anonymous> (C:\Users\hw\AppData\Local\Programs\PicGo\resources\app.asar\node_modules\request\request.js:1076:12)
    at Object.onceWrapper (events.js:288:20)
    at IncomingMessage.emit (events.js:205:15)
-------Error Stack End------- 

[BUG]Abuout `git pull`

描述bug
------Error Stack Begin------
TypeError: Cannot read properties of undefined (reading 'filter')
at Object.handle (/home/lxin49/.config/picgo/node_modules/picgo-plugin-gitee-uploader/dist/index.js:89:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
-------Error Stack End-------

步骤
在执行pull gitee时报错,报错信息如上

截图

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.