Page 1 of 1

Api Tiles - Error WebApplicationException

Posted: Thu Feb 02, 2017 12:15 pm
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

Re: Api Tiles - Error WebApplicationException

Posted: Thu Feb 02, 2017 12:59 pm
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

Re: Api Tiles - Error WebApplicationException

Posted: Thu Feb 02, 2017 1:16 pm
by AntonioAGS

Re: Api Tiles - Error WebApplicationException

Posted: Thu Feb 02, 2017 1:30 pm
by Marco
This is how it works with the latest API changes

https://xserver2-europe-eu-test.cloud.p ... xxxxxxxxxx

Re: Api Tiles - Error WebApplicationException

Posted: Thu Feb 02, 2017 1:51 pm
by AntonioAGS
hi

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

Thanks

Re: Api Tiles - Error WebApplicationException

Posted: Thu Feb 02, 2017 2:13 pm
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

Re: Api Tiles - Error WebApplicationException

Posted: Fri Feb 03, 2017 8:40 am
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

Re: Api Tiles - Error WebApplicationException

Posted: Fri Feb 03, 2017 5:00 pm
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