Git Product home page Git Product logo

halo-lsky-pro's Introduction

Hi, Chenhe here 👋

A young man who is willing to devote himself to what he loves and to sacrifice to fight against what he hates.

If I make some serious statements or important releases, please verify my PGP key.

  • 🌎 Believe in OPENNESS.
  • 🚫 Avoid politics. (Even though it's necessary)
  • 👀 APP perfectionist. Fu*k Wechat, Baidu, etc.
  • 😄 Love modern technology.
  • 😠 Hate companies that don't upgrade their architecture.

🌱 I'm the co-founder of the COT watch face. This is a startup company, but I prefer to call it an experimental field -- we give birth to strange ideas and bring them into reality -- although most of the time they doesn't bring in income.

📱 Devices in use

Galaxy S23 Galaxy Watch4 Galaxy Buds 2 Pro DJI Air3 Raspberry Pi 3B+ Synology DS720+

📫 Get in touch

Personal Website Telegram stack overflow Sina Weibo E-Mail

halo-lsky-pro's People

Contributors

ichenhe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

halo-lsky-pro's Issues

上传成功,加载异常

问题现象

  • 配置校验正确,上传成功,前台没有错误提示。
  • Halo 后台无法显示图片预览,提示「加载异常」。
  • 图片 url 复制到浏览器也许可以直接访问。

常见原因

  • 图床是否启用了图片审核?审核是否通过?
  • 图床是否正确配置了 https?
  • 图床是否配置了不稳定的存储后端?例如 x -> Alist -> LskyPro 多层套娃。

自助排查方案

  1. 首先确定 Halo 附件详情里的 URL 是否正常。若不正常说明 LskyPro 配置有问题,尝试手动调用 LskyPro 的图片上传 API POST /api/v1/upload 查看响应数据是否包含 links请特别关注附件 URL 的协议,如果是 https 则图床必须正确配置证书
  2. 若 URL 正常,打开浏览器 f12 开发者模式,查看网络错误/终端错误。检查加载失败的图片对应的 url 是什么,与附件详情里的相比协议是否一致?地址是否一致?
  3. 若 LskyPro 使用了套娃存储后端或非稳定后端(例如非官方的网盘 API),请先使用稳定的后端(例如本地存储)尝试。

若自助排查无法解决问题请提 issue,并附上自助排查的结果

关于 HTTPS

本插件鼓励但不强制图床使用 HTTPS,且如果图床未配置证书,请确保启用的储存策略中「访问网址」填写的是明文协议 http 而不是 https

图床访问网址配置

上传错了,验证是成功的

java.lang.NullPointerException: Cannot invoke "me.chenhe.halo.lskypro.client.Links.url()" because the return value of "me.chenhe.halo.lskypro.client.UploadResponse.links()" is null
at me.chenhe.halo.lskypro.LskyProAttachmentHandler.buildAttachment(LskyProAttachmentHandler.java:140) ~[na:na]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:

[Bug]验证测试提示证书错误 sun.security.provider.certpath.SunCertPathBuilderException

Environment

Description

测试时提示:

image

Failed to request LskyPro API: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

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.