Cloudflare api is very slow for cloudflare images api

I’m new to Cloudflare Images, i’m trying to get a signed Url to directly upload the images from the browser, the latency is 4s which is a lot.
I executed :

curl -w “@curl-format.txt” -o /dev/null -X POST “https://api.cloudflare.com/client/v4/accounts/ACOUNT_ID/images/v2/direct_upload
-H “Authorization: bearer API_TOKEN”
;
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 259 0 259 0 0 51 0 --:–:-- 0:00:04 --:–:-- 68
time_namelookup: 0.019552s
time_connect: 0.026657s
time_appconnect: 0.052434s
time_pretransfer: 0.052561s
time_redirect: 0.000000s
time_starttransfer: 4.982614s
----------
time_total: 4.983472s

as you can see the total time is 4.983472s
Note:

  • The call is made from San Francisco
  • Using 1Gb internet connection
  • Using curl to avoid any middleware
  • ACOUNT_ID & API_TOKEN are replaced with real values in my local machine

Can you please help me
thank you.

There’s this recent incident, which has already been fixed, but might still be affecting parts of the network.

4 Likes

thank you so much

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.