Skip to main content
Solved

Not getting a response when using remoteFetchAsync

  • February 10, 2021
  • 2 replies
  • 26 views

Forum|alt.badge.img+3

I’m not sure what I’m doing with remoteFetchAsync, but when I make the same API call in Postman I get a response with the list of warehouses. When I do it in Airtable I just get a status. What can I do to get the response back?

Best answer by Bill_French

Try this…

let postGET = "https://...";

let getOptions = {
    method: "GET",
    headers: {
        'Accept' : 'application/json',
    },
}
const getResults  = await remoteFetchAsync(getURL, getOptions);
const jsonPost    = await getResults.json();

2 replies

Forum|alt.badge.img+19
  • Inspiring
  • 3263 replies
  • Answer
  • February 10, 2021

Try this…

let postGET = "https://...";

let getOptions = {
    method: "GET",
    headers: {
        'Accept' : 'application/json',
    },
}
const getResults  = await remoteFetchAsync(getURL, getOptions);
const jsonPost    = await getResults.json();

Forum|alt.badge.img+3
  • Author
  • Participating Frequently
  • 8 replies
  • February 10, 2021

Try this…

let postGET = "https://...";

let getOptions = {
    method: "GET",
    headers: {
        'Accept' : 'application/json',
    },
}
const getResults  = await remoteFetchAsync(getURL, getOptions);
const jsonPost    = await getResults.json();

that did it! Thanks!