You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fixed issue with Smartling downloads failing during localization import. Issue is caused by an authentication token being retrieved/refreshed but not set as part of HttpClient Authentication request header. This resulted in HTTP 401 errors where the authentication fails with the endpoint. - Updated retrieval/refreshing of authentication token to also set the newly retreived/refreshed authentication data in the HttpClient Authentication request header. - Introduce HTTP 401 status checks in the downloading/uploading of PO files to detect authentication token expiration. Token refreshing is performed the upload/download operation is retried. - Refactored UploadLatestPOFile and DownloadLatestPOFile to reduce nesting blocks and minimize code in try-catch blocks. - This is an urgent fix so no approved reviews yet. Will fix/address problems after. #jira: FORT-645798 #rb: none #rnx #test Locally ran the Localize UAT command with the Download step. Before these changes, the download step would have HTTP 401 errors failing to authenticate. After these changes, I haven't encountered them. [CL 27394443 by leon huang in ue5-main branch]