question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prompt for undefined variables

See original GitHub issue

I find for some HTTP requests I use I almost always use a unique value for a variable (e.g. logId, sessionId, etc.). I usually just change the variable in the file but I think it would be even nicer if I could get prompted in a pop-up/modal/dialog window for any undefined variables, they can default to the last used value but the first time it is used it could just be blank and allow me to enter it in.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
NearlyUniquecommented, Jan 24, 2020

I think I have a similar user case.

I use our own apis for a lot of diagnostics against our system. So I might en up with a customer or product id and need to make queries for that but the customer or product id will change almost every time I make the query

so given

###
GET https://example.com/{{customer_id}}/more/path

How would we elegantly allow the system to (probably prompt) for the unknown value customer_id per request (or at least if no default?) has been set.

0reactions
mfulton26commented, Mar 13, 2020

right, so for some requests I’ll have some variable that will be unique for every single request, instead of defining the variable somewhere I’d rather get a pop-up window when I try to send the request asking me for the value of any variables in the request that are not defined, this way I can only temporarily define it for just that once when I send the request, the next time I click “Send Request” I’ll get prompted/asked again for the value

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prompt variable undefined - javascript - Stack Overflow
I'm assuming that you have two issues: This line effectively does nothing text == message;. Because you used the equality operator ...
Read more >
Undefined when using prompt in a function - Sololearn
Undefined when using prompt in a function ... They are all undefined because the variable declarations are inside the function askData. They have...
Read more >
Prompting for Input - Getting Undefined Variable
Undefined variable error. I am getting the error undefined variable even after following these steps #read name abcd #echo $name na: undefined variable...
Read more >
There's no prompt for undefined variables used in included ...
There's no prompt for undefined variables used in included "File Header" file template ; Project, IntelliJ IDEA ; Priority, Normal N ; Type,...
Read more >
Ansible When Variable is defined or undefined Examples
How to check if the variable is empty or defined or undefined in Ansible using ansible ... Execute a task when a variable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found