Inteliboi / ShareX-Custom-Upload

Custom uploader for ShareX
The Unlicense
42 stars 25 forks source link

Test Error #2

Open Pxrple opened 5 years ago

Pxrple commented 5 years ago

Response parse failed. Newtonsoft.Json.JsonReaderException: Error parsing NaN value. Path '', line 1, position 1. at Newtonsoft.Json.JsonTextReader.ParseNumberNaN(ReadType readType, Boolean matched) 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.CustomUploaderParser.ParseSyntaxJson(String syntaxJsonPath) at ShareX.UploadersLib.CustomUploaderParser.ParseSyntax(String syntax, Boolean isOutput) at ShareX.UploadersLib.CustomUploaderParser.Parse(String text, Boolean isOutput) at ShareX.UploadersLib.CustomUploaderItem.ParseResponse(UploadResult result, ResponseInfo responseInfo, CustomUploaderInput input, Boolean isShortenedURL) at ShareX.UploadersLib.ImageUploaders.CustomImageUploader.Upload(Stream stream, String fileName)

yppdr commented 3 years ago

I have the same error but the pull of Java2107 solved the problem.

5

3045 commented 3 years ago

@yppdr Yeah it seems that ShareX is only looking for a JSON response, so when it doesn't see one, it freaks out and returns an incoherent error message. Glad my contribution could help! 👍

yppdr commented 3 years ago

Hi @Pxrple , after several tests, the version proposed by Java2107 works. So I think you can close your exit by mentioning the creator (@Inteliboi ).