Skip to main content
Question

Facing issue while integration api in trigger.


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 its return a valid output but getting issue 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.

2 replies

GetUWired
Forum|alt.badge.img+12
  • Zapier Expert
  • 1030 replies
  • April 20, 2021

@shweta 

Zapier requires that all objects returned have a unique field called ‘id’. If the request doesn’t return this field, you will need to loop through the response and assign a unique id using the fields that are returned. 

However, it also looks like the response is null. Can you check out the monitoring tab of your integration page and post a sample response? 


AndrewJDavison_Luhhu
Forum|alt.badge.img+10

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