Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imgur Upload error #7379

Open
KingMarzy opened this issue Apr 1, 2024 · 1 comment
Open

Imgur Upload error #7379

KingMarzy opened this issue Apr 1, 2024 · 1 comment

Comments

@KingMarzy
Copy link

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:

<title>503 first byte timeout</title>

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:

<title>503 first byte timeout</title>

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
Copy link

Duplicate of #7376

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants