Coder Social home page Coder Social logo

Async Breaks Requests about hellosign.net HOT 7 CLOSED

realcrowd avatar realcrowd commented on July 4, 2024
Async Breaks Requests

from hellosign.net.

Comments (7)

jdconley avatar jdconley commented on July 4, 2024

Can you elaborate on "breaks my application"?

Also, if you want to make the calls synchronously, you can just use the HttpClient or WebClient directly in your application. We just wrote a really thin wrapper for us to have strong typing.

Or just use something like RestSharp: http://restsharp.org/

from hellosign.net.

MSDP avatar MSDP commented on July 4, 2024

I apologize, it doesn't break my application.

    var signatureResponse = await helloSign.SignatureRequest.SendWithTemplateAsync(requestSignature);

will execute however return nothing.

I definitely want to work Asynchronously, however only that single area of the code causes issues when ran asynchronously.

from hellosign.net.

jdconley avatar jdconley commented on July 4, 2024

Is it returning null, or an object that isn't populated the way you'd expect?

Maybe set a breakpoint in line 112 of the HelloSignClient:

return JsonConvert.DeserializeObject<T>(responseString);

Inspect in there... Perhaps the JSON isn't returned in a format we are expecting?

from hellosign.net.

MSDP avatar MSDP commented on July 4, 2024

It seems to have to do with Getting the Request Stream via Async.

Stepping through with a break on:

        webReq.ContentType = "application/x-www-form-urlencoded";

It will hit

        using (var requestStream = await webReq.GetRequestStreamAsync())

then break again back on webReq (as i'm sending multiple signatures).

from hellosign.net.

jdconley avatar jdconley commented on July 4, 2024

Can you show your calling code? There could be a multi-threading issue in there if you have multiple requests running concurrently.

from hellosign.net.

MSDP avatar MSDP commented on July 4, 2024

Do you suppose I could email you the code personally?

Shot it to your email with hope!

I really appreciate your assistance!

from hellosign.net.

MSDP avatar MSDP commented on July 4, 2024

@jdconley is the MAN! Silly usage of Asynchronous calls broke the wrapper, now it works perfect! =D

from hellosign.net.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.