Hi
We constantly get the 'Invalid Resource' error during running the task on TFS onPrem
The "Basic Authentication" in IIS is Disabled
The Agent is authenticated against server via OAuth2
What can be a root cause?
Thank you
Sergey
Log:
2019-01- ##[section]Starting: Download Secure File
2019-01- Task : Download Secure File
2019-01- Description : Downloads a secure file
2019-01- Version : 0.0.9
2019-01- Author : Matt Labrum
2019-01- Help :
2019-01- ##[debug]agent.workFolder=D:\vsagent1_work
2019-01- ##[debug]loading inputs and endpoints
2019-01- ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2019-01- ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2019-01- ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2019-01- ##[debug]loading INPUT_FILEINPUT
2019-01- ##[debug]loading INPUT_TARGETPATH
2019-01- ##[debug]loading SECUREFILE_TICKET_1bc82f80-12a1-422f-a88b-9c51e170c4c8
2019-01- ##[debug]loaded 6
2019-01- ##[debug]System.TeamFoundationCollectionUri=https://pttfs-auto/tfs/DefaultCollection/
2019-01- ##[debug]SYSTEMVSSCONNECTION auth param ACCESSTOKEN = ****
2019-01- ##[debug]fileInput=1bc82f80-12a1-422f-a86b-9c58e170c4c8
2019-01- ##[debug]targetPath=C:\Temp\mycert
2019-01- ##[debug]targetName=null
2019-01- ##[debug]secure file name for id 1bc82f80-12a1-422f-a86b-9851e170c4c8 = note.txt
2019-01- Downloading secureFileId=1bc82f80-12a1-422f-a86b-9c51e170c4c8 to destFile=C:\Temp\mycert\note.txt
2019-01- ##[debug]SYSTEM.TEAMPROJECT=Myproject
2019-01- ##[debug]secure file ticket for id 1bc82f80-12a1-422f-a86b-9851e170c4c8 = ****
2019-01- Debug Start
2019-01- 1bc82f80-12a1-422f-a86b-9881e170c4c8
2019-01- ****
2019-01- false
2019-01- Debug End
2019-01- Error: Invalid Resource
2019-01- at RestClient. (D:\vsagent1_work_tasks\downloadsSecureFile_c5cac6da-5bcf-4591-a212-0877a8792c4a\0.0.9\node_modules\typed-rest-client\RestClient.js:162:28)
2019-01- at next (native)
2019-01- at fulfilled (D:\vsagent1_work_tasks\downloadsSecureFile_c5cac6da-5bcf-4591-a212-0387a8792c4a\0.0.9\node_modules\typed-rest-client\RestClient.js:6:58)
2019-01- at process._tickCallback (internal/process/next_tick.js:109:7)
2019-01- Unable to download secure file: Invalid Resource
Hi We constantly get the 'Invalid Resource' error during running the task on TFS onPrem The "Basic Authentication" in IIS is Disabled The Agent is authenticated against server via OAuth2
What can be a root cause? Thank you
Sergey
Log: 2019-01- ##[section]Starting: Download Secure File 2019-01- Task : Download Secure File 2019-01- Description : Downloads a secure file 2019-01- Version : 0.0.9 2019-01- Author : Matt Labrum 2019-01- Help : 2019-01- ##[debug]agent.workFolder=D:\vsagent1_work 2019-01- ##[debug]loading inputs and endpoints 2019-01- ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 2019-01- ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 2019-01- ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 2019-01- ##[debug]loading INPUT_FILEINPUT 2019-01- ##[debug]loading INPUT_TARGETPATH 2019-01- ##[debug]loading SECUREFILE_TICKET_1bc82f80-12a1-422f-a88b-9c51e170c4c8 2019-01- ##[debug]loaded 6 2019-01- ##[debug]System.TeamFoundationCollectionUri=https://pttfs-auto/tfs/DefaultCollection/ 2019-01- ##[debug]SYSTEMVSSCONNECTION auth param ACCESSTOKEN = **** 2019-01- ##[debug]fileInput=1bc82f80-12a1-422f-a86b-9c58e170c4c8 2019-01- ##[debug]targetPath=C:\Temp\mycert 2019-01- ##[debug]targetName=null 2019-01- ##[debug]secure file name for id 1bc82f80-12a1-422f-a86b-9851e170c4c8 = note.txt 2019-01- Downloading secureFileId=1bc82f80-12a1-422f-a86b-9c51e170c4c8 to destFile=C:\Temp\mycert\note.txt 2019-01- ##[debug]SYSTEM.TEAMPROJECT=Myproject 2019-01- ##[debug]secure file ticket for id 1bc82f80-12a1-422f-a86b-9851e170c4c8 = **** 2019-01- Debug Start 2019-01- 1bc82f80-12a1-422f-a86b-9881e170c4c8 2019-01- **** 2019-01- false 2019-01- Debug End 2019-01- Error: Invalid Resource 2019-01- at RestClient. (D:\vsagent1_work_tasks\downloadsSecureFile_c5cac6da-5bcf-4591-a212-0877a8792c4a\0.0.9\node_modules\typed-rest-client\RestClient.js:162:28)
2019-01- at next (native)
2019-01- at fulfilled (D:\vsagent1_work_tasks\downloadsSecureFile_c5cac6da-5bcf-4591-a212-0387a8792c4a\0.0.9\node_modules\typed-rest-client\RestClient.js:6:58)
2019-01- at process._tickCallback (internal/process/next_tick.js:109:7)
2019-01- Unable to download secure file: Invalid Resource