SupabaseS
Supabase5mo ago
Chris

I am unable to call external API

I am trying to call external API from edge function. Very simple test:
const response = await fetch("https://MYURL/q/id?id=38715442");
console.log(JSON.stringify(response));

I get "TypeError: error sending request for url" error.

The API works fine when I test it from Postman or curl.

I am using a free tier of supabase. Could this be causing the issue?
Alternatively, is there a way to check if supabase is able to resolve MYURL?

Thanks for any suggestions or help!
Was this page helpful?