diced / zipline

A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!
https://zipline.diced.sh/
MIT License
1.31k stars 128 forks source link

Bug: ShareX 401 Unauthorized #569

Closed crocofied closed 2 weeks ago

crocofied commented 2 months ago

What happened?

Hello. I try to use Zipline with ShareX.

I downloaded the sharex config from my installation and uploaded it to ShareX. However, every time I try to make a screenshot, i get the error "401 Unauthorized".

Version

other (provide version in additional info)

What browser(s) are you seeing the problem on?

No response

Zipline Logs

[2024-06-26T06:42:57 INFO   db] connecting to database postgres://postgres:postgres@postgres/postgres
[2024-06-26T06:42:57 INFO   server] starting zipline mode="production" version="4.0.0-dev+1"
[2024-06-26T06:42:57 INFO   server] reading environment for configuration
[2024-06-26T06:42:59 INFO   server] server started hostname="0.0.0.0" port=3000

Browser Logs

No browser logs, but Sharex logs:

Error:
Error message:
Der Remoteserver hat einen Fehler zurückgegeben: (401) Nicht autorisiert.

Request URL:
https://img.SECRET.de/api/upload

Status code:
(401) Unauthorized

Headers:
Access-Control-Allow-Origin: *
Vary: Accept-Encoding
Content-Length: 62
Content-Type: application/json; charset=utf-8
Date: Wed, 26 Jun 2024 13:10:11 GMT

Response text:
{"statusCode":401,"error":"Unauthorized","message":"no token"}

Stack trace:
   bei System.Net.HttpWebRequest.GetResponse()
   bei ShareX.UploadersLib.Uploader.SendRequestFile(String url, Stream data, String fileName, String fileFormName, Dictionary`2 args, NameValueCollection headers, CookieCollection cookies, HttpMethod method, String contentType, String relatedData)

Additional Info

v4.x

diced commented 2 months ago

could you upload the sxcu file generated by Zipline? make sure you redact anything sensitive

diced commented 2 weeks ago

Closing as stale