我想用python代码来访问halo的附件api,但是会一直报错,不知道是什么问题,个人令牌跟相关的API的文档都有扛过了,有没有大佬帮帮忙
报错内容如下:
响应状态码: 404
响应头: {'Connection': 'close', 'Content-Length': '324', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Content-Type': 'application/problem+json', 'Date': 'Thu, 19 Jun 2025 02:39:39 GMT', 'Expires': '0', 'Pragma': 'no-cache', 'Referrer-Policy': 'strict-origin-when-cross-origin', 'Server': 'openresty', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'SAMEORIGIN', 'X-Xss-Protection': '0'}
响应内容: {"type":"about:blank","title":"Not Found","status":404,"detail":"No static resource apis/api.console.halo.run/v1alpha1/attachments/-/upload-from-url.","instance":"http://halo.localhost/apis/api.console.halo.run/v1alpha1/attachments/-/upload-from-url","requestId":"83f26a27-7310","timestamp":"2025-06-19T02:39:39.412404280Z"}