UploadFile Error C# SDK

UploadFile Error C# SDK

Hello, I'm attempting to upload a zip file with UploadFile, using code from the SDK documentation here: https://www.zoho.com/crm/developer/docs/api/bulk-write/upload-file.html

However, when it hits the UploadFile function call, I'm getting an error, and I was curious if anyone else has faced this issue before:

 

Exception: 

Name

Value

Type

$exception

{"Exception of type 'ZCRMSDK.CRM.Library.CRMException.ZCRMException' was thrown."}

ZCRMSDK.CRM.Library.CRMException.ZCRMException

Inner Exception:

 

Name

Value

Type

InnerException

{"Error reading JObject from JsonReader. Path '', line 0, position 0."}

System.Exception {Newtonsoft.Json.JsonReaderException}

Stack Trace:


   at lambda_method(Closure , Object , Object[] )

   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_1.<GetExecutor>b__3(Object instance, Object[] methodParameters)

   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)

   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)

 

 

Thanks.