Api Tiles - Error WebApplicationException

Proper forum for all questions related to xServer INTERNET = the Azure based cloud solution. This forum deals with the architecture topics such as load balancing, available profiles and standard server settings.
Please be aware that questions about core functionality such as routing, mapping, geocoding in general should be placed in the xServers dedicated forum ;-)
Post Reply
AntonioAGS
Posts: 7
Joined: Mon May 30, 2016 11:22 am

Api Tiles - Error WebApplicationException

Post by AntonioAGS »

Hi,
From this morning we have problems with Api Tiles.
Any urls respond:

{ "message" : "Server threw a WebApplicationException with status 404 and origin message: HTTP 404 Not Found", "faultType" : "javax.ws.rs.ClientErrorException" }

Can you help us?
Thanks
Marco

Re: Api Tiles - Error WebApplicationException

Post by Marco »

Hi Antonio,

do you already use the new URL, I mentioned in your last post?
xserver2-europe-eu-test.cloud.ptvgroup.com
Further there was some API changes the last days (some path parameters are request parameters now), see API doc:
Please have a look to this comparison.

Code: Select all

OLD:
/services/rest/XMap/tile/{z}/{x}/{y}/{storedProfile}/{imageFormat}/{size}?xtok={yourToken}
NEW:
/services/rest/XMap/tile/{zoomLevel}/{x}/{y}?storedProfile={storedProfile}&layers={layers}&contentType={contentType}&imageFormat={imageFormat}&size={size}&xtok={yourToken}
Leaflet tile Layer example:

Code: Select all

var basemapLayer = L.tileLayer(
            'https://s0{s}-xserver2-europe-test.cloud.ptvgroup.com/services/rest/XMap/tile/{z}/{x}/{y}/' +
             '?storedProfile={profile}&layers=background,transport&contentType=image&imageFormat=png&xtok={token}',
            {
                profile: 'silkysand',
                token: window.token,
                attribution: '<a target="_blank" href="http://www.ptvgroup.com">PTV</a>, TOMTOM',
                subdomains: '1234',
                maxZoom: 22,
                pane: 'tilePane'
            }).addTo(map);
If this don't help you, please post your request URL, that we can figure out whats wrong.

Regards

Marco
Marco

Re: Api Tiles - Error WebApplicationException

Post by Marco »

This is how it works with the latest API changes

https://xserver2-europe-eu-test.cloud.p ... xxxxxxxxxx
AntonioAGS
Posts: 7
Joined: Mon May 30, 2016 11:22 am

Re: Api Tiles - Error WebApplicationException

Post by AntonioAGS »

hi

How can I keep up with the changes?
I'm not notified for the changes.

Thanks
Marco

Re: Api Tiles - Error WebApplicationException

Post by Marco »

Hi,
we are aware this was a breaking change. There was no announcement, because the service is still in test phase. We know breaking changes causes problems for our customers and be sure, there are no upcoming incompatible changes planned. If there is any in future, you will get informed timely over customer service as E-Mail, like you know it from our xServer 1.x clusters.
After the tile service goes productive, we will provide a test/integration cluster too, that you have enough time to migrate new features without any problems on productive services.

Thank you for using PTV xServer, regards
Marco
AntonioAGS
Posts: 7
Joined: Mon May 30, 2016 11:22 am

Re: Api Tiles - Error WebApplicationException

Post by AntonioAGS »

Hi,
Today, we are see error in Url from tiles.
For example:

https://xserver2-europe-eu-test.cloud.p ... tok=xxxxxx
https://xserver2-europe-eu-test.cloud.p ... tok=xxxxxx


This urls respond "No service was found."

Can you help us?
thanks
Marco

Re: Api Tiles - Error WebApplicationException

Post by Marco »

Hi,
the problem is solved, please try it again (clear your cache). This morning we start an maintenance with various internal changes.
Please note, the tile Service is still in testing phase with high frequently update rhythm. There is no SLA. We try, but can not guarantee, the service is online all the time.

If you need high availability like you know it from the xServer 1.x clusters, please look forward to our upcoming productive system.

Regards

Marco
Post Reply