get organizations fails with - Failed connect to NNN.meraki.com:443; Operation now in progress

DonL
Getting noticed

get organizations fails with - Failed connect to NNN.meraki.com:443; Operation now in progress

Hello,

Haven't been here for a while - working for a new customer now - so back at it.

Trying to recycle a script i used in the past , but it fails at the most basic level :
There are only 4  organizations -

/usr/bin/curl -o Meraki_orgs_${DATE}.raw -L -H 'X-Cisco-Meraki-API-Key:999999999999999' -X GET -H 'Content-Type: application/json' 'https://NNNN.meraki.com/api/v1/organizations'

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:03:33 --:--:-- 0
curl: (7) Failed connect to NNNN.meraki.com:443; Operation now in progress

 


I'm not getting any of the Authentication type errors so my key should* be good -
What does "Operation now in progress" mean ?

am I in a queue - will I get a Page when My Order is Up ?

Thanks,
Don

4 Replies 4
GreenMan
Meraki Employee
Meraki Employee

It appears you're specifying the destination shard at Meraki (NNNN).

Did you try the standard, non-specific destination (which would simply be API)?

 

curl -L --request GET \
--url https://api.meraki.com/api/v1/organizations \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'X-Cisco-Meraki-API-Key: <key>'

DonL
Getting noticed

Hello,

No I did not - but I will now ( Thank you )
 My command with the change from the Address I log into for the Dashboard to api.merai.com and the addition of :
--header 'Accept: application/json'
same result - * timed out in 4:54 ( 5 minutes )

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:04:54 --:--:-- 0
curl: (7) Failed connect to api.meraki.com:443; Operation now in progress

Using the syntax you supplied - same result ( but no timer )   😞
curl: (7) Failed connect to api.meraki.com:443; Operation now in progress


I'm starting to wonder if the systems I am attempting to test from might be the problem - I'm going to move ....
Thanks for the input,

Don

GreenMan
Meraki Employee
Meraki Employee

Yeah - even at my first pass I thought - this looks like your machine basically can't talk to the Meraki API, for fairly basic networking / firewalling reasons...   But the recommendation is now to call the API megaproxy (via 'API') rather than indvidual shards - as they can move around.

DonL
Getting noticed

Moving to another system yielded some improvements ! - like it Worked
- but still took nearly 5 minutes to get a "list" of one Organization back...

Wow this is So slow... I could walk over to the Closet and count the devices, faster than it comes back with the answer 😋

 

Get notified when there are additional replies to this discussion.