93
Views
4
Comments
Solved
[Ultimate PDF] URL gets converted to "localhost.outsystemsenterprise.com/appname/"
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

Hi Leonardo

When using the `PrintToPDF_Advanced` server action from my application the generated PDF presents and IIS error screen with HTTP 404.0 and it has converted the URL to "https://localhost.outsystemsenterprise.com/PrintStuff"

Any reason it would replace the subdomain with localhost?


If I paste the URL I wanted to print into the Demo application it prints from there.

2025-09-25 22-50-38
Hanno
Solution

@Leonardo Fernandes, thanks for the help in troubleshooting and identifying the problem as fat-finger mistake. 

Oh, how much pain that extra forward slash has caused me! ^_^


2025-09-25 22-50-38
Hanno

It does the same (HTTP 404 when using the server action) for both relative and absolute URLs

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Hi Hanno.

Are you using deployment zones by any chance? Ultimate PDF will use the deployment zone address to retrieve the PDF screen using an internal network address. I suspect your deployment zone is configured using "localhost.outsystemsenterprise.com" as its address.

You can also install Ultimate PDF Management and download a troubleshooting zip file, to better understand why this address is being used.

2025-09-25 22-50-38
Hanno

Thanks, Leonardo

We don't have deployment zones. It is a default PaaS setup, no weird configs.

I've downloaded the troubleshooting zip file but couldn't find anything anything obvious at first glance. I'll dig deeper to see why this is happening.

2025-09-25 22-50-38
Hanno
Solution

@Leonardo Fernandes, thanks for the help in troubleshooting and identifying the problem as fat-finger mistake. 

Oh, how much pain that extra forward slash has caused me! ^_^


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