Skip to main content
Question

Running into issues after returning a valid output through Postman


Facing issue to create trigger 

const options = {
  url:
    'https://anywheredevwebhost.azurewebsites.net/api/TokenAuth/ConvertEncryptPasswordForTesting?pwd="5454454""',
  method: "GET",
  headers: {
    Authorization:
      "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwibmFtZSI6ImFkbWluIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJQWUpETlhWREpaQkpOTVhTSTZCQTdQMk5DQk40RENUTyIsInJvbGUiOiJBZG1pbiIsImp0aSI6IjRjN2RiMGFmL…….",
    Accept: "application/json",
  },
  params: {},
};

return z.request(options).then((response) => {
  response.throwForStatus();
  const results = response.json; // You can do any parsing you need for results here before returning them

  return results;
});

Getting the error:

When I am calling same API in postman, it returns a valid output but I’m having issues with Zapier could you please help.

Thanks in advance

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • April 19, 2021

Hi @shweta - Can you show us what the expected API response looks like (The one you see in Postman). Thanks!


  • Author
  • Beginner
  • 5 replies
  • April 20, 2021

 


AndrewJDavison_Luhhu
Forum|alt.badge.img+10

@shweta 
Just checking in to see if you still need help with this?