Re: Hey guys I need your help

Jump to Solution
192 1
Showing results for 
Search instead for 
Did you mean: 
4 - Data Explorer
4 - Data Explorer

Does the custom block API allow us to call POST/GET requests to external services such as one’s own AWS EC2? It seems that I can only call Wikipedia and other services fail

1 Solution

Accepted Solutions

The URL has to start with https

See Solution in Thread

5 Replies 5

It’s possible, it might be other kind of issue

Have you managed to make a POST request to anything other than Wikipedia before?

As even the calls to openweather fail. I’m trying to connect to my AWS EC2 instance

const weatherURL =
.then(res => res.json())
.then(data => console.log(“Data List Loaded”, data.list))

I’ve indeed made other calls (to my own BE service) as part of this custom blocks beta. For better and for worse, it’s likely a coding error on your side.

Here’s part of the code I have in my current block:

const payload = {
    config: config._kvStore,
      headers: { 'content-type': 'application/json' },
      url: `${ENV.DEV.BASE_API}do_something`,
      body: JSON.stringify(payload)
    function (error, response, body) {
      if (error) {
      } else {

The URL has to start with https