WebPagetest Forums
Some locations do not work using the API - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Some locations do not work using the API (/showthread.php?tid=15722)

Pages: 1 2


Some locations do not work using the API - Frank_daw - 03-22-2019 02:02 AM

Hi,

I open this post in part to see if someone else happens or is just me. The thing is that inrento make requests with the location 'Spain', but from the API returns this error:

{statusCode: 400,
   statusText:
    'Invalid Location, please try submitting your test request again.' }

When yesterday I worked perfectly. The same thing happens with Paris and a few others, however there are other locations that work (but do not offer me the reliability of the data I'm looking for).

Can someone solve / clarify why this happens to me?

Thank you very much and greetings!Big Grin


RE: Some locations do not work using the API - andydavies - 03-23-2019 02:19 AM

AFAIK only Dulles, London and the Akamai sponsored locations support API requests

(there might be more but it's generally up to a locations sponsor as to whether it's enabled)


RE: Some locations do not work using the API - maka - 03-23-2019 10:29 PM

I have the same issue with "Stockholm2"
It worked for weeks and few days, all of a sudden, it's stopped working.

It would be nice to have more information of which locations can be used with API.
AFAIK there is nothing in the location API response to understand if a specific location can be used via API or not


RE: Some locations do not work using the API - Frank_daw - 03-25-2019 09:17 AM

Hello andydavies,

I appreciate your answer but what you say does not make sense since the location of Spain (La Rioja), worked perfectly until the other day that did not let me make requests.

The question is to know why.

Thanks and best regards


RE: Some locations do not work using the API - pmeenan - 03-25-2019 09:54 PM

Spain and Stockholm2 should never have worked through the API and I don't see how they ever did. Your API key email/information should have included a full list of the locations that the key works with as well as a link to check the location list at any time: https://www.webpagetest.org/getLocations.php?k=A&f=html


RE: Some locations do not work using the API - Frank_daw - 03-26-2019 06:01 PM

Hello pmeenan,

I know that both in the registration documentation and in the web that you have posted, Spain does not come out as a server to make requests from the API, but I was making requests to Spain (La Rioja) for a few days until one morning it gave me the location error that I put in the first post.

I really do not pretend that it magically works again (which I would love), if I do not understand the reason why it worked for me and not now.

Thank you for your response, greetings.

PD: iPhone(all models) stop work, Samsung Galaxy(all models) and many locations too.

It turns out that the locations have now reappeared at https://www.webpagetest.org/getLocations.php?f=html

The iPhone, Galaxy and many more that had disappeared, although they still do not work already appear, which gives me to understand that it has been a drop in service.

[Image: 2csf8uq.jpg]


RE: Some locations do not work using the API - maka - 03-28-2019 01:49 AM

Same is for me

I've double checked the location list you get when you the API key and Stockholm2 is not listed there so
I don't pretend that it magically works again.
I can give us a list of test I triggered for more than 2 weeks using API for Stockholm2

API for Stockholm2 was working and it stopped all of a sudden


RE: Some locations do not work using the API - pmeenan - 03-28-2019 03:04 AM

https://www.webpagetest.org/getLocations.php?f=html shows all of the locations available for users to use when using the UI to submit tests. The vast majority of those locations do not have the capacity to support API traffic as well.

https://www.webpagetest.org/getLocations.php?k=A&f=html is a filtered version of the list that shows the locations that are available to be used with the API keys.

If it was working previously it was a bug that has since been fixed because those locations were never supposed to work with the API keys.


RE: Some locations do not work using the API - Frank_daw - 03-28-2019 05:54 PM

Hello pmeenan,

Thank you for your reply, I am very sorry that this "error" has been removed, since I think it was really useful to use it from the API and that it loses much of the utility.

Even so if it serves as a recommendation I would ask for it to be included again.

Thank you very much for the clarification.

A greeting.


RE: Some locations do not work using the API - arunthilak - 04-16-2019 12:31 AM

Hi,
Thank you for that URL which lists only the API locations - I have also been using some of the "bug" locations; bit unfortunate they don't work any longer. Are there any plans to include any of the iPhone locations for the API based tests?


Many Thanks,
Arun Thilak