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

Docker/Traefik OData returns wrong URL #460

Open
jpreniers opened this issue Apr 28, 2020 · 6 comments
Open

Docker/Traefik OData returns wrong URL #460

jpreniers opened this issue Apr 28, 2020 · 6 comments

Comments

@jpreniers
Copy link

We are using BC Docker containers with Traefik proxy server, but we cannot use the Odata URL from the BC Containers in Power-BI desktop or Excel. For example; the officially Odata URL from the container is: https://xxxxxxxxxxxxxxxxx.com/ENTERPRISErest/ODataV4/ but if we open this url in a browser we see that it’s return a wrong url: https://xxxxxxxxxxxxxxxxx.com/BC/ODataV4. So the BC instance is returned wrong.
The PublicODataBaseUrl Is set correctly in the BC NST configuration.

@freddydk
Copy link
Contributor

Yes, that is correct. If anything, it is a bug in the Business Central platform that the PublicODataBaseUrl isn't applied to the output. I think I filed a bug a long time ago, will check up what the status is, it isn't really tied to traefik, but traefik exposes it.
In the meantime, you will have to replace the start of the url with the publicodatabaseurl yourself.

@babaczyk
Copy link

It's BC14, PublicOdataBaseUrl looks properly, but data feed address in the OData is wrong. Sorry but maybe I didn't understand your response - am I able to fix that feed address presented in OData?

image

@freddydk
Copy link
Contributor

It is a bug in the NAV/BC platform - not something I can fix in Docker

@babaczyk
Copy link

Thanks, I understand this is a BC error, but I asked rather that if I can change that value by myself? Because I only know PublicODataBaseUrl parameter of the Service Tier configuration. Maybe you know if there is anything else I can configure to force the correct feed address? Thanks in advance.

@freddydk
Copy link
Contributor

Unfortunately not

@freddydk
Copy link
Contributor

I heard that this should be fixed in the latest version of BC, I have not tried myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants