When I upgraded from 25.1.0 to 26.0.0, any call to Square freezes/locks IIS and VS. I downgraded to 25.2.0 and still have the same error. I downgraded back to 25.1.0 and it worked. Some code update in 25.2.0 is crashing IIS. This is a critical problem.
Are the calls that are freezing up making it to Square? Do you see them in the API logs?
Yes, the calls are making it to Square and there is a 200 response with data. When stepping through the code, the line of code that makes the call just hangs forever. I need to restart IIS/W3C to get back to normal. I’m happy to just on a Zoom to help debug. I just tried it with v27.0.0.
What’s the API call your making that’s freezing or is it every call? Also could you provide the snippet of code your seeing this behavior with and your application ID?
Every API call freezes. The code and environments have not changed in a long time.
Sample Code:
try
{
SquareClient client = new SquareClient.Builder().Environment(Square.Environment.Production).AccessToken(cccessToken).Build();
var api = client.LocationsApi;
var locations = api.ListLocations().Locations;
string json = JsonConvert.SerializeObject(locations).ToStringEmptyIfNull();
return JsonConvert.DeserializeObject<FBShared.SquareLocations>(json);
}
catch (ApiException ex)
{
…
}
catch (Exception ex)
{
…
}
I just tested this with 26.0.0 and it worked as expected for me. Are you able to get our Quickstart to run as expected?
Hmmm…yeah, it worked. Very weird, but good…I guess.
In my project, it works with v25.1.0, but nothing higher. All of the dependencies are correct.
Makes no sense. Any ideas? Thanks
If you remove and reinstall the dependencies does it work?
Thanks, but unfortunately that didn’t work. That project has dozens of other dependencies as well. I’ll try to find time to remove them all and test it.
I know the release notes mentions API/Method updates, but there had to have been something else. Was there a dependency update? Was there a change to how Square is called from the SDK?
Thanks,
Brian
That’s correct. Those are the updates.
Was there a resolution to this freeze/lock issue? I’m experiencing same problem with any version after v25.1.0
Still breaks for me. I need to debug more. It must have to do with config or other DLLs.