Skip to main content
santhoshm99042429
Participant
June 13, 2021
Answered

FETCH 'GET' not working in extension builder for photoshop

  • June 13, 2021
  • 3 replies
  • 908 views

Hi, I'm currently trying to build an extension that tries to fetch data from my server. But unfortunately, I'm unable to execute. is there any example code or steps which can be followed?

This topic has been closed for replies.
Correct answer Jef Bracke

If I'm not mistaken this could fix your problem:

http-client.jsx

It does get/post/put/delete,  I'm sure it works as I use it myself. 🙂

 

 

3 replies

Jef BrackeCorrect answer
Inspiring
June 15, 2021

If I'm not mistaken this could fix your problem:

http-client.jsx

It does get/post/put/delete,  I'm sure it works as I use it myself. 🙂

 

 

Multifarious
Inspiring
June 15, 2021

That's a VERY useful resource, thanks for posting, this'll save eons of time!! 😄

Community Expert
June 14, 2021

Please provide more information like what is the error that you get? Did you try making a call to another server, maybe use a public server, like a GET call to say google.com? Also sharing your code snippet where you make the call will be beneficial to review the code and get suggestions.

-Manan

-Manan
Multifarious
Inspiring
June 13, 2021

"fetch data from server"

What exactly are you trying? Is this a file server or a http/ftp server?

santhoshm99042429
Participant
June 14, 2021

@Multifarious, currently building an extension that needs a login feature. So to make the authentication verified need to establish a REST API from the extension. So after searching the internet found in few place people used 'fetch' library to establish the REST (GET, POST).  But unfortunately, when I tried in my extension I'm unable to make any REST API connections. And it's an HTTPS server.