ShareX hotkey stopped working after 1 upload

Will attach logs, apparently the screenshot is “above 3MB”, even though it’s just a 1920x1080 ss, which works if I manually ss and upload

2022-08-22 15:45:46.117 - ShareX starting.
2022-08-22 15:45:46.121 - Version: 14.1
2022-08-22 15:45:46.121 - Build: Release
2022-08-22 15:45:46.122 - Command line: "C:\Program Files\ShareX\ShareX.exe" 
2022-08-22 15:45:46.122 - Personal path: C:\Users\Luna\Documents\ShareX
2022-08-22 15:45:46.122 - Operating system: Windows 10 Enterprise (64-bit)
2022-08-22 15:45:46.123 - Running as elevated process: True
2022-08-22 15:45:46.166 - ApplicationConfig load started: C:\Users\Luna\Documents\ShareX\ApplicationConfig.json
2022-08-22 15:45:47.117 - ApplicationConfig load finished: C:\Users\Luna\Documents\ShareX\ApplicationConfig.json
2022-08-22 15:45:47.123 - UploadersConfig load started: C:\Users\Luna\Documents\ShareX\UploadersConfig.json
2022-08-22 15:45:47.126 - MainForm init started.
2022-08-22 15:45:47.657 - UploadersConfig load finished: C:\Users\Luna\Documents\ShareX\UploadersConfig.json
2022-08-22 15:45:47.689 - HotkeysConfig load started: C:\Users\Luna\Documents\ShareX\HotkeysConfig.json
2022-08-22 15:45:48.089 - HotkeysConfig load finished: C:\Users\Luna\Documents\ShareX\HotkeysConfig.json
2022-08-22 15:45:48.306 - MainForm init finished.
2022-08-22 15:45:48.888 - Startup time: 2837 ms
2022-08-22 15:45:48.927 - Hotkey registered: Hotkey: Print Screen, Description: Capture region, Job: RectangleRegion
2022-08-22 15:45:48.928 - Hotkey registered: Hotkey: Ctrl + Print Screen, Description: Capture entire screen, Job: PrintScreen
2022-08-22 15:45:48.929 - Hotkey registered: Hotkey: Alt + Print Screen, Description: Capture active window, Job: ActiveWindow
2022-08-22 15:45:48.929 - Hotkey registered: Hotkey: Divide, Description: Capture active window, Job: ActiveWindow
2022-08-22 15:45:48.933 - HotkeyManager started.
2022-08-22 15:45:48.936 - WatchFolderManager started.
[ignore all above]

2022-08-22 15:45:52.091 - Hotkey triggered. Hotkey: Divide, Description: Capture active window, Job: ActiveWindow
2022-08-22 15:45:52.109 - Executing: Capture active window
2022-08-22 15:45:52.483 - Task in queue. Job: Job, Type: Image, Host: Custom image uploader
2022-08-22 15:45:52.554 - Task status: Preparing
2022-08-22 15:45:53.026 - Upload started. File name: DeadByDaylight-EGS-Shipping_pyRGBILwEG.png
2022-08-22 15:45:55.022 - Error:
Error message:
The remote server returned an error: (400) Bad Request.

Request URL:
https://api.nightlight.gg/v1/upload

Status code:
(400) Bad Request

Headers:
Connection: keep-alive
vary: Origin
x-content-type-options: nosniff
x-frame-options: DENY
referrer-policy: strict-origin-when-cross-origin
x-xss-protection: 1; mode=block
permissions-policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()
report-to: {"group":"default","max_age":31536000,"endpoints":[{"url":"https://britishboop.report-uri.com/a/d/g"}],"include_subdomains":true}
nel: {"report_to":"default","max_age":31536000,"include_subdomains":true}
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
CF-RAY: 73ebb5478a9fabcf-CPH
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
Content-Length: 35
Content-Type: text/plain; charset=utf-8
Date: Mon, 22 Aug 2022 12:45:54 GMT
Server: cloudflare

Response text:
Exceeded maximum upload size (3MB)


Stack trace:
   at System.Net.HttpWebRequest.GetResponse()
   at 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)
2022-08-22 15:45:55.056 - Upload failed. Retrying upload.
2022-08-22 15:45:57.588 - Error:
Error message:
The remote server returned an error: (400) Bad Request.

Request URL:
https://api.nightlight.gg/v1/upload

Status code:
(400) Bad Request

Headers:
Connection: keep-alive
vary: Origin
x-content-type-options: nosniff
x-frame-options: DENY
referrer-policy: strict-origin-when-cross-origin
x-xss-protection: 1; mode=block
permissions-policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()
report-to: {"group":"default","max_age":31536000,"endpoints":[{"url":"https://britishboop.report-uri.com/a/d/g"}],"include_subdomains":true}
nel: {"report_to":"default","max_age":31536000,"include_subdomains":true}
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
CF-RAY: 73ebb5583c94abcf-CPH
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
Content-Length: 35
Content-Type: text/plain; charset=utf-8
Date: Mon, 22 Aug 2022 12:45:57 GMT
Server: cloudflare

Response text:
Exceeded maximum upload size (3MB)


Stack trace:
   at System.Net.HttpWebRequest.GetResponse()
   at 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)
2022-08-22 15:45:57.606 - Task failed. File name: DeadByDaylight-EGS-Shipping_pyRGBILwEG.png, Errors:
Custom uploader error. Invalid response content is returned from host (api.nightlight.gg), expected response content is JSON.

Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: E. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.Linq.JToken.ReadFrom(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JToken.Parse(String json, JsonLoadSettings settings)
   at ShareX.UploadersLib.CustomUploaderFunctionJson.Call(ShareXCustomUploaderSyntaxParser parser, String[] parameters)
   at ShareX.UploadersLib.ShareXCustomUploaderSyntaxParser.CallFunction(String functionName, String[] parameters)
   at ShareX.UploadersLib.ShareXSyntaxParser.Parse(String text, Boolean isFunction, Int32 startPosition, Int32& endPosition)
   at ShareX.UploadersLib.ShareXSyntaxParser.Parse(String text, Boolean isFunction, Int32 startPosition, Int32& endPosition)
   at ShareX.UploadersLib.ShareXSyntaxParser.Parse(String text)
   at ShareX.UploadersLib.CustomUploaderItem.ParseResponse(UploadResult result, ResponseInfo responseInfo, CustomUploaderInput input, Boolean isShortenedURL)
   at ShareX.UploadersLib.CustomUploaderItem.TryParseResponse(UploadResult result, ResponseInfo responseInfo, CustomUploaderInput input, Boolean isShortenedURL)

Error message:
The remote server returned an error: (400) Bad Request.

Request URL:
https://api.nightlight.gg/v1/upload

Status code:
(400) Bad Request

Headers:
Connection: keep-alive
vary: Origin
x-content-type-options: nosniff
x-frame-options: DENY
referrer-policy: strict-origin-when-cross-origin
x-xss-protection: 1; mode=block
permissions-policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()
report-to: {"group":"default","max_age":31536000,"endpoints":[{"url":"https://britishboop.report-uri.com/a/d/g"}],"include_subdomains":true}
nel: {"report_to":"default","max_age":31536000,"include_subdomains":true}
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
CF-RAY: 73ebb5583c94abcf-CPH
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
Content-Length: 35
Content-Type: text/plain; charset=utf-8
Date: Mon, 22 Aug 2022 12:45:57 GMT
Server: cloudflare

Response text:
Exceeded maximum upload size (3MB)


Stack trace:
   at System.Net.HttpWebRequest.GetResponse()
   at 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)

nevermind

msedge_g1thGFGpOO

Hey, sorry you’re having issues getting it working. I’m not actually aware of anyone running into the size limit with ShareX before, whilst I am curious how you’ve managed to I’ve gone ahead and raised your upload limit so you should be good to go.

Let me know how you get on.

1 Like

Thanks! Issue was that I used PNG for screenshots, switched to JPEG (which is default) so that’s probably the reason of nobody else reporting about it
incase you wanna check it out yourself: Task settings > Image > Image format

Hope you sometimes clear upload cache to help with maintenance costs lol

edit: yep, i think it’s better to have PNGs

image

Ah, that’s good to know. Thanks for sharing.

Ha, yeah, I got that automated the other day actually. It’s amazing how quickly they add up

Yeah, PNG’s will have better quality but if non-perk icons are the main issue then that should improve soon anyway. I released some major improvements to the identifier yesterday which are only enabled for perks so far. It seems to be working really well and I’m hoping it’ll work equally well for other icons too.

1 Like