ShareX / ShareX

ShareX is a free and open source program that lets you capture or record any area of your screen and share it with a single press of a key. It also allows uploading images, text or other types of files to many supported destinations you can choose from.
https://getsharex.com
GNU General Public License v3.0
27.97k stars 3.09k forks source link

Imgur Upload error #7379

Open KingMarzy opened 1 month ago

KingMarzy commented 1 month ago

Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at ShareX.UploadersLib.ImageUploaders.Imgur.InternalUpload(Stream stream, String fileName, Boolean refreshTokenOnError) at ShareX.WorkerTask.UploadData(IGenericUploaderService service, Stream stream, String fileName) at ShareX.WorkerTask.DoUpload(Stream data, String fileName, Int32 retry)

Error message: The remote server returned an error: (503) Server Unavailable.

Request URL: https://api.imgur.com/3/upload

Status code: (503) first byte timeout

Headers: Connection: close Retry-After: 0 X-Served-By: cache-pdk-kpdk1780130-PDK X-Cache: MISS X-Cache-Hits: 0 X-Timer: S1711999842.735485,VS0,VE15485 access-control-allow-methods: GET, PUT, POST, PATCH, DELETE, OPTIONS Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true X-Frame-Options: DENY Access-Control-Allow-Headers: Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN, X-expSNKPK127, X-Imgur-Defender-Bypass Accept-Ranges: bytes Content-Length: 452 Content-Type: text/html; charset=utf-8 Date: Mon, 01 Apr 2024 19:30:57 GMT Server: cat factory 1.0

Response text:

<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

503 first byte timeout

Error 503 first byte timeout

first byte timeout

Error 54113

Details: cache-pdk-kpdk1780130-PDK 1711999857 3863935671


Varnish cache server

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)

Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at ShareX.UploadersLib.ImageUploaders.Imgur.InternalUpload(Stream stream, String fileName, Boolean refreshTokenOnError) at ShareX.WorkerTask.UploadData(IGenericUploaderService service, Stream stream, String fileName) at ShareX.WorkerTask.DoUpload(Stream data, String fileName, Int32 retry)

Error message: The remote server returned an error: (503) Server Unavailable.

Request URL: https://api.imgur.com/3/upload

Status code: (503) first byte timeout

Headers: Connection: close Retry-After: 0 X-Served-By: cache-pdk-kpdk1780120-PDK X-Cache: MISS X-Cache-Hits: 0 X-Timer: S1711999858.303107,VS0,VE15481 access-control-allow-methods: GET, PUT, POST, PATCH, DELETE, OPTIONS Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true X-Frame-Options: DENY Access-Control-Allow-Headers: Authorization, Content-Type, Accept, X-Mashape-Authorization, IMGURPLATFORM, IMGURUIDJAFO, sessionCount, IMGURMWBETA, IMGURMWBETAOPTIN, X-expSNKPK127, X-Imgur-Defender-Bypass Accept-Ranges: bytes Content-Length: 452 Content-Type: text/html; charset=utf-8 Date: Mon, 01 Apr 2024 19:31:13 GMT Server: cat factory 1.0

Response text:

<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

503 first byte timeout

Error 503 first byte timeout

first byte timeout

Error 54113

Details: cache-pdk-kpdk1780120-PDK 1711999874 2983723435


Varnish cache server

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)

Combinacijus commented 1 month ago

Duplicate of #7376