Question

output_missing Please define output or return early.

  • 19 August 2022
  • 1 reply
  • 1132 views

import requests 
url = " "
querystring = input["Address"]

headers = {
"X-RapidAPI-Key": "MY KEY",
"X-RapidAPI-Host": " "
}
response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)

Can I ask this question here?

Error: output_missing - Please define output or return early.

I am new to Python and my programming background is not helping fix this. Any advise or direction is appreciated. Thank you

This is a copy/pasted code from Rapidapi. I only changed the “querystring” which is nothing more that a simple address entry. Thank you. There are articles online about Zapier only allowing output vs. print but I appreciate any guidance. 

 

Can i just pay someone to fix this for me? I don’t wait to wait a month before someone wants to volunteer a 5 minute response to share their wisdom. Thank you


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +12

Hi @DV_Automation 

You need to define an output variable or a return statement
Something like return {‘text’: response.text}

https://zapier.com/help/create/code-webhooks/python-code-examples-in-zaps 

If you want to hire an expert Zapier does have a list to pick from or you can get matched up here: https://zapier.com/experts/matchmaking