Connection issue

Connection issue

in API Development

Posted by: Steelskin.5826

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 ?

Connection issue

in API Development

Posted by: Stefan Larimore.6872

Stefan Larimore.6872

Programmer

Next

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.

Connection issue

in API Development

Posted by: Khisanth.2948

Khisanth.2948

The “Cannot assign requested address.” seems a bit odd. Do you have more than `ulimit -n` descriptors opened?

Connection issue

in API Development

Posted by: Steelskin.5826

Steelskin.5826

Ohhh sweet…
Problem solved. You’re right about the opened connections limit.
Thanks

Connection issue

in API Development

Posted by: Stephane Lo Presti

Previous

Stephane Lo Presti

Content Marketing Manager, French

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.gw2archive.eu/forum/community/api/API-errors-bugs/

Thank you.