Skip to content
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

"Invalid URI: The hostname could not be parsed" error with pac pages upload/download #1006

Open
mannybellas opened this issue Aug 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mannybellas
Copy link

mannybellas commented Aug 22, 2024

Describe the bug
(note, this issue is also described here: #971)

Whe trying to upload a Power Pages site (modelVersion 2), we get the following error (as shown in pac-log.txt)

   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at bolt.module.paportal.PAPortalCommon.AddAttributeByType(Dictionary`2 values, String attributeName, Object attributeValue, XmlNode fieldNode, String entityName, String recordId, String filePath, ILocalizedStrings`1 locale)
   at bolt.module.paportal.core.PortalDirectoryParser.JsonEntityToDictionary(Dictionary`2 entityData, XmlNode entitySchemaNode, String entityFileName, String entityFolderPath)
   at bolt.module.paportal.core.PortalDirectoryParser.ParseEntitySingleFolder(String entityFolderPath, PortalExportImportMetaData metadata, XmlNode entitySchemaNode)
   at bolt.module.paportal.core.PortalDirectoryParser.ParseEntityFolder(PortalExportImportMetaData entityMetadata, XmlNode entityXMLNode)
   at bolt.module.paportal.PortalDataImporter.IterateSchema(String rootFolderPath, PortalDeploymentConfigProvider portalDeploymentConfigProvider, PortalDataManifestProvider portalManifestProvider, Guid websiteId, XmlNode xn)
   at bolt.module.paportal.PortalDataImporter.<>c__DisplayClass32_0.<IterateSchemaAndUploadData>b__1(XmlNode xn)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass42_0`2.<PartitionerForEachWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at bolt.module.paportal.PortalDataImporter.IterateSchemaAndUploadData(AuthProfile authProfile, String rootFolderPath)
   at bolt.module.paportal.PortalDataImporter.UploadData(AuthProfile authProfile)

To Reproduce
Steps to reproduce the behavior:
run pac command run pac pages upload -env https://ENVIRONMENT.crm6.dynamics.com -p ./Pages/name-of-portal -mv 2 -f

Expected behavior
pac pages upload should not fail. Note: exporting and importing the Power Pages site a Solution works fine.

Additional context:
pac cli: Version: 1.33.5+g1621296

@mannybellas mannybellas added the bug Something isn't working label Aug 22, 2024
@mannybellas
Copy link
Author

mannybellas commented Sep 1, 2024

#971 discussion has some recent updates/comments with possible workarounds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant