Connection issue
Steelskin.5826:
Hi,
I have a random error while trying to connect to https://api.guildwars2.com/v1/ from my vps
An example with a simple wget :
wget https://api.guildwars2.com/v1/wvw/matches.json —no-check-certificate
—2013-09-16 16:36:50-- https://api.guildwars2.com/v1/wvw/matches.json
Resolving api.guildwars2.com… 64.25.40.13
Connecting to api.guildwars2.com|64.25.40.13|:443… failed: Cannot assign requested address.
Retrying.
—2013-09-16 16:36:51— (try: 2) https://api.guildwars2.com/v1/wvw/matches.json
Connecting to api.guildwars2.com|64.25.40.13|:443… failed: Cannot assign requested address.
Retrying.
—2013-09-16 16:36:53— (try: 3) https://api.guildwars2.com/v1/wvw/matches.json
Connecting to api.guildwars2.com|64.25.40.13|:443… connected.
WARNING: cannot verify api.guildwars2.com’s certificate, issued by `/C=US/O=GeoTrust, Inc./CN=GeoTrust SSL CA’:
Unable to locally verify the issuer’s authority.
HTTP request sent, awaiting response… 200 OK
Length: 2685 (2.6K) [application/json]
Saving to: `matches.json.1’
100%============================>] 2,685 —.-K/s in 0s
I don’t have this error with another url (tried with several urls)…
I need to retry again and again until the error disappears. Has anyone solved this issue ?
Stefan Larimore.6872:
Is this a regression you are seeing or a new machine you are querying from? I assume the latter. Perhaps the machine you are querying from doesn’t have some standard root certificates installed. Ensure the GeoTrust Global CA cert in installed on your machine.
Khisanth.2948:
The “Cannot assign requested address.” seems a bit odd. Do you have more than `ulimit -n` descriptors opened?
Steelskin.5826:
Ohhh sweet…
Problem solved. You’re right about the opened connections limit.
Thanks
Stephane Lo Presti.7258:
Hi everyone,
Please note that from now on, we’re suggesting that you report all errors and bugs related to the API in this stickied thread:
https://forum-en.guildwars2.com/forum/community/api/API-errors-bugs/
Thank you.