Encountered an error with Invalid URI in production. It is working fine in the development and testing environment.
Invalid URI: The format of the URI could not be determined. at ssUltimatePDF_Service.RssExtensionUltimatePDF_Service.MssPrintPDFExt(HeContext heContext, String inParamURL, String inParamAbsoluteURL, String inParamTemporaryFolder, String inParamProduct, String inParamRevision, IRecord inParamViewport, IRecord inParamEnvironment, RecordList inParamCookies, IRecord inParamPaper, Int32 inParamTimeoutSeconds, Byte[]& outParamPDF) at ssUltimatePDF_Service.Actions.ActionPrintPDF_Execute(HeContext heContext, String inParamURL, String inParamAbsoluteURL, String inParamTemporaryFolder, String inParamProduct, String inParamRevision, Boolean inParamAllowRevisionDownload, STViewportStructure inParamViewport, STEnvironmentStructure inParamEnvironment, RLCookieList inParamCookies, STPaperStructure inParamPaper, Int32 inParamTimeoutSeconds, Byte[]& outParamPDF) at ssUltimatePDF_Service.ServiceAPIController.Flows.ActionPrintPDF(HeContext heContext, String inParamURL, String inParamAbsoluteURL, String inParamTemporaryFolder, String inParamProduct, String inParamRevision, Boolean inParamAllowRevisionDownload, STViewportStructure inParamViewport, STEnvironmentStructure inParamEnvironment, RLCookieList inParamCookies, STPaperStructure inParamPaper, Int32 inParamTimeoutSeconds, Boolean inParamCaptureLogs, Byte[]& outParamPDF, Byte[]& outParamLogsZipFile) at ssUltimatePDF_Service.ServiceAPIController.ServiceAPIPrintPDF()
Please kindly assist.
Hi Daus,
The "Invalid URI" error likely results from a misconfigured URL in production. Verify the URL format, environment-specific configurations, and ensure absolute URLs are used.
Please provide the URL in the following format -
https://"+[YourDomain]+"/[ApplicationName]/[ScreenName]
"https://"+GetRequestDomain.Domain+"/Test/pdf"
Refer to the screenshot below for guidance -
Thanks,
Vipin Yadav
Thank you for the suggestion.
However, I believe that the URL value is correct because:
1. The same URL configuration is used in Dev, Test, and Prod environment, and in Dev and Test is working fine, but not in Prod.
2. When I try to copy and paste the URL configuration (for Prod) in the search box, it opens the screen.
Hi @Daus Shah,
Your URL appears to be correct.
You can Create a support ticket, and they will help you.
Hi @Daus Shah
It would be better if you can share, how you created URL hiding confidential parts if any.
Also check the mandatory input parameter value if has any.
I will suggest to log the generated Url & try to validate it again.
Normally I create Url like below
Hello Mahmudul,
Sure. Here is the URL. I change the actual name to be a dummy one.
The same URL creation is used on Dev but it is working there.
@Daus Shah
Agreed with Vipin. Your implementation is correct. Create support ticket. They will will help you.
Also if you get any solution, don't forget to share.
Hello @Daus Shah ,
As suggested by Muhammad Mahmudul Hasan try to log the generated URL and test it.Are you using any different configuration in production? Like SEO-friendly URLs?
Check if that have any impact when calling GetRequestDomain... If so you can create a site property to have the effective value of the domain.
Regards,
Pedro.
If the url is correct, You can validate whether it’s blocked by firewall by Remote Desktop to your prod server.
Hi All, anyone found a solution for this? Did OS support provide anything at all. Having the same issue as well