Coder Social home page Coder Social logo

Comments (12)

m-imran38 avatar m-imran38 commented on August 12, 2024 1

image

from easypost-csharp.

m-imran38 avatar m-imran38 commented on August 12, 2024 1

Thank you for your help I am able to figure out the issue and able to fix it and it is working now.
This was the issue: "Is it being called as await sync_shipment_accounts(storeId)".

from easypost-csharp.

nwithan8 avatar nwithan8 commented on August 12, 2024

Hello, thanks for reporting this!

To help us troubleshoot this, would you mind providing us with a bit more information:

  • What platform are you running our library on? Is this, for example, an ASP.NET application, a backend system?
  • What does the outer code that calls the code snippet you shared look like? Since the last version you used, 2.5, the library has been made asynchronous, as denoted by the await keyword in front of each function call. Any outer method wrapping our library function calls will also need to be asynchronous to execute properly.

Thanks in advance for helping us help you!

from easypost-csharp.

m-imran38 avatar m-imran38 commented on August 12, 2024

from easypost-csharp.

nwithan8 avatar nwithan8 commented on August 12, 2024

Sorry @m-imran38 , it looks like the image you tried to attach didn't get uploaded, would you mind sending it again?

from easypost-csharp.

m-imran38 avatar m-imran38 commented on August 12, 2024

from easypost-csharp.

nwithan8 avatar nwithan8 commented on August 12, 2024

@m-imran38 It doesn't seem like GitHub automatically adds photos when responding via email, you might have to respond on the GitHub page directly for the attachment to work.

from easypost-csharp.

nwithan8 avatar nwithan8 commented on August 12, 2024

@m-imran38 Thank you for the image. Personally, nothing is immediately jumping out to me as an issue, but if you wouldn’t mind, could you confirm a few things for us to help us debug?

  1. Is your API key being set and passed into the client properly? It seems like you are using a static key name, and pulling the API key from the environment by that key name. When an API call is being made, the API should throw an unauthorized exception if the API key provided is invalid. If that’s the case, in the code snippet you shared, the API error may have triggered the "catch" clause?
  2. Did an API call occur? Is there a way to see if an actual HTTP request was attempted by the EasyPost client, perhaps in your logs somewhere, or via a debugging session?

Thank you again for helping us figure this out.

from easypost-csharp.

m-imran38 avatar m-imran38 commented on August 12, 2024

Screenshot 2023-02-17 102101
Yes, the API key is passed as you can see in the screenshot, and whichever method I called there is no exception and no response.

from easypost-csharp.

m-imran38 avatar m-imran38 commented on August 12, 2024
EasyPost.mp4

here is the debug session of the api call.

from easypost-csharp.

nwithan8 avatar nwithan8 commented on August 12, 2024

Thank you for confirming those details, and for the video, very helpful to see it in action.

The only thing I can see is, the sync_shipment_accounts function is marked asynchronous, but it is being called asynchronously upstream? Is it being called as await sync_shipment_accounts(storeId)?

Other than that, you might be able to enter into the EasyPost library (go into the All() function) and narrow down where in that function things are stalling.

Hopefully we can figure this out!

from easypost-csharp.

nwithan8 avatar nwithan8 commented on August 12, 2024

Glad we could figure it out!

from easypost-csharp.

Related Issues (20)

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.