53
Views
9
Comments
[Ultimate PDF] Encountered Error When Generating PDF in PROD. It is okay in DEV and TST environment
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

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.

2024-12-02 13-16-47
Vipin Yadav

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 

2023-11-29 03-11-02
Daus Shah

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.

2024-12-02 13-16-47
Vipin Yadav


Hi @Daus Shah,

Your URL appears to be correct. 


You can Create a support ticket, and they will help you. 

Thanks,

Vipin Yadav


2021-01-28 10-02-59
Muhammad Mahmudul Hasan

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



2023-11-29 03-11-02
Daus Shah

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.

2021-01-28 10-02-59
Muhammad Mahmudul Hasan

@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. 

2024-08-22 11-39-17
Pedro Sousa

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.


2020-05-27 14-53-26
Burt Wang

If the url is correct, You can validate whether it’s blocked by firewall by Remote Desktop to your prod server.

2023-02-02 05-30-25
Jeremy Raj

Hi All, anyone found a solution for this? Did OS support provide anything at all. Having the same issue as well

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.