Unable to create serverbased translation memory

Hi

I am trying to create a server based translation memory using the SDL Studio 2017 API and I am getting the following exception, when i try to save the TM:

serverTM.Save()

System.AggregateException occurred
HResult=0x80131500
Message=One or more errors occurred.
Source=Sdl.TmService.Sdk
StackTrace:
at Sdl.TmService.Sdk.TmServiceRestClient.CreateLanguageResourceTemplate(RestLanguageResourceTemplate template)
at Sdl.LanguagePlatform.TranslationMemoryApi.InternalRestClient.CreateLanguageResourceTemplate(LanguageResourceTemplateEntity languageResourceTemplateEntity, String resourceGroupPath)
at Sdl.LanguagePlatform.TranslationMemoryApi.InternalRestClient.CreateTranslationMemory(TranslationMemoryEntity translationMemoryEntity, String resourceGroupPath)
at Sdl.LanguagePlatform.ServerBasedTranslationMemory.Client.TranslationMemoryAdministrationClient.CreateTranslationMemory(TranslationMemoryEntity translationMemoryEntity, String resourceGroupPath)
at Sdl.LanguagePlatform.TranslationMemoryApi.ServerBasedTranslationMemory.Save()
at Synchronizer2017.TmManager.CreateTranslationMemory(String translationMemoryName, CultureInfo source, List`1 targets, String parentResource, String containerPath) in C:\Users\arben.sabani\Documents\Visual Studio 2017\Projects\Synchronizer2017\Synchronizer2017\TmManager.cs:line 282
at Synchronizer2017.TmManager.CreateInterServerCopyOfTranslationMemory(String sourcePath, TmManager sourceManager, String targetResourcePath, String targetTmName, String targetContainerPath, TmManager targetManager, Boolean emptyTM, String outTmportstatistics) in C:\Users\arben.sabani\Documents\Visual Studio 2017\Projects\Synchronizer2017\Synchronizer2017\TmManager.cs:line 396
at Synchronizer2017.Program.Main(String[] args) in C:\Users\arben.sabani\Documents\Visual Studio 2017\Projects\Synchronizer2017\Synchronizer2017\Program.cs:line 93

Inner Exception 1:
HttpRequestException: Response status code does not indicate success: 502 (Bad Gateway).

 

The same code worked with previous versions of Studio? I am using SDL Studio 2017 SR1 14.1.6413.8

Thanks for your help.

best

 

Arben