Can not get response when I call third party api

Hi I am newbie and I tried to get data from my backend server.
this is the code.

        import { Headers, fetch } from 'node-fetch';

        var response = await fetch("https://mybackend/api/call", {
          method: 'POST',
          headers: {
            "Authorization": "Bearer xxxxxxxxxxxx",
          body: JSON.stringify({
            data: encodeURI("encodedDescription"),
        var json = await response.json();

it works fine in postman.
please let me know what the problem is.

1 Like

Hi @bergeron1002
If you’re trying to fetch from a resolver function, you’ll need to add the permissions into your manifest file. More information here:

Don’t forget to update the installation afterwards with forge install --upgrade

I already did it
But still same error

Can you send over what error you’re receiving and your manifest file