-
-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Pipeline Processor returning "UnsupportedMediaTypeException" #1872
Comments
It sounds like 5.1 does not support the features being accessed. 6.0 would be the minimum... You would need to use 7.2 if 6 is no longer supported.... but Im not sure what 2019 supports |
I see - thanks for your help! |
@MrHinsh You find the current REST API - AzD version mapping table at Mapping Table. 2019 only supports REST API version 5.x. |
Then it looks like the pipeline migrator is not supported in 2019. We need 6.1+ for it to work. @norschel is there a way to detect the version of TFS from the API? |
Hi Everyone, I am using the migration tool to migrate the pipelines from one organization to another in Azure Devops. I am getting the below error. Can anyone please help me with this? [15:09:40 FTL] Error while running AzureDevOpsPipelineProcessor |
Please create a new thread @madhuripawar2212; this is a different topic. When you do post, attach your config and logs. |
In case of WorkItemMigrationConfig, you can ask the TfsProjectCollection class for serverversion, e.g.:
The result is for example: For the REST API you can call any REST API (without providing the api-version) and then check the content-type of the response header. The result in this case is for example: |
@tomfrenzel perhaps adding a kill switch in the event of an older API! |
@MrHinsh I am getting the same error while migrating pipelines, please help |
The pipeline migrator needs a minimum of V6 of the Rest API. Your version of TFS is not supported. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days |
Version
Source Version
Azure DevOps Server 2019
Target Version
Azure DevOps Service
Relevant configuration
Relevant log output
What happened?
My original error was that the REST API version 6.0 is out of range for my server. I went ahead and updated all references of the API 6.0 to 5.1 so my server could support it.
My current error is the "System.Net.Http.UnsupportedMediaTypeException: No MediaTypeFormatter is available to read an object of type 'RestResultDefinition`1' from content with media type 'text/html'." I can't seem to find any references of this online and wondering if someone can point me in the right direction. Not sure what I am missing here, all other processors are working well
Thanks
Debug in Visual Studio
The text was updated successfully, but these errors were encountered: