Comments (12)
from easypost-csharp.
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.
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.
from easypost-csharp.
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.
from easypost-csharp.
@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.
@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?
- 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?
- 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.
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.
EasyPost.mp4
here is the debug session of the api call.
from easypost-csharp.
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.
Glad we could figure it out!
from easypost-csharp.
Related Issues (20)
- DeliveredDutyPaid vs Incoterm? HOT 1
- Add Ability to Register Carriers with Custom Flows HOT 7
- Add equality overload for comparison of EasyPostObject and dictionary HOT 1
- Add back ability to instantiate model classes HOT 5
- SSIS scrip task HOT 32
- [Bug]: EasyPost.Models.API.Rate does not include the "rate" field HOT 2
- Add bool verify and bool verify_strict properties to Address object HOT 7
- [Bug]: Shipment Buy for FedEx Intl returns invalid shipment object HOT 2
- [Feat]: Update to latest RestSharp 110 HOT 6
- [Bug]: Model constructors were all made internal HOT 5
- [Bug]: Cannot new Option in EasyPost.Parameters.Shipment.Create HOT 1
- [Bug]: Deadlock when blocking on async methods HOT 4
- [Feat]: Specify EasyPost.Parameters.Order.Create.CarrierAccounts by Id HOT 5
- [Bug]: shipments.all request hangs indefinitely HOT 7
- [Bug]: TimeInTransitDetails.EasyPostEstimatedDeliveryDate has incorrect JSON name mapping HOT 2
- [Bug]: Editing property values on parameters failing subsequent calls to paginated methods. HOT 5
- [Feat]: Change pickup_min_datetime and pickup_max_datetime Shipment Options types to string HOT 6
- [Bug]: RetrieveStatelessRates does not send CarrierAccounts correctly HOT 3
- [Feat]: Add BuyerAddress and ReturnAddress support in EasyPost.Parameters.Order.Create HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easypost-csharp.