@@ -65,10 +65,10 @@ public class DeploymentsV1: IDeploymentsV1
6565 {
6666 public SDKConfig SDKConfiguration { get ; private set ; }
6767 private const string _target = "unity" ;
68- private const string _sdkVersion = "0.31.0 " ;
69- private const string _sdkGenVersion = "2.753.6 " ;
68+ private const string _sdkVersion = "0.31.1 " ;
69+ private const string _sdkGenVersion = "2.793.0 " ;
7070 private const string _openapiDocVersion = "0.0.1" ;
71- private const string _userAgent = "speakeasy-sdk/unity 0.31.0 2.753.6 0.0.1 HathoraCloud" ;
71+ private const string _userAgent = "speakeasy-sdk/unity 0.31.1 2.793.0 0.0.1 HathoraCloud" ;
7272 private string _serverUrl = "" ;
7373 private ISpeakeasyHttpClient _defaultClient ;
7474 private Func < Security > ? _securitySource ;
@@ -353,6 +353,18 @@ public async Task<GetDeploymentsV1DeprecatedResponse> GetDeploymentsV1Deprecated
353353 throw new SDKException ( "API error occurred" , httpCode , httpResponse . downloadHandler . text , httpResponse ) ;
354354 }
355355 }
356+ else if ( httpCode == 500 )
357+ {
358+ if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
359+ {
360+ var obj = JsonConvert . DeserializeObject < ApiError > ( httpResponse . downloadHandler . text , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = Utilities . GetDefaultJsonDeserializers ( ) } ) ;
361+ throw obj ! ;
362+ }
363+ else
364+ {
365+ throw new SDKException ( "API error occurred" , httpCode , httpResponse . downloadHandler . text , httpResponse ) ;
366+ }
367+ }
356368 else if ( httpCode >= 400 && httpCode < 500 )
357369 {
358370 throw new SDKException ( "API error occurred" , httpCode , httpResponse . downloadHandler . text , httpResponse ) ;
0 commit comments