Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

How to view / verify the query-params in Visor? #555

Answered by Jorghe
suntong asked this question in Help
Discussion options

You must be logged in to vote

Hello @suntong
I think the query-params and the Request Payload got confused, as @abdelhai suggested earlier, the request points to the Post method which is usually a .json file.
If you really wanted to see those parameters you can print them and see the in the Visor:

@app.get("/")
def render_home(id: str, name: str  ):
  print(f"{id} - {name}")
  return <p>Ok</p>

And then watch the Logs in Deta Visor.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@suntong
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by suntong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants