-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prompt tag prompts for input twice #6387
Comments
I am also getting this issue. |
Same here |
I'm getting this issue as well. |
Same here |
Same using MacOS |
Same issue using macOS 13.5.1 |
I also can confirm this issue with following Insomnia Versions on Linux:
|
Same for me |
Also seeing this with 2023.5.8 👌 |
Same |
Same issue for 2023.5.8, 2023.5.7, 2023.5.6, 2023.5.5 |
Same here for linux, insomnia 2023.5.8
|
Still an issue on Mac after upgrade to 8.0.0 Version: Insomnia 8.0.0 |
Just found out that the prompt works as expected (shown once) when you use a manually entered "Storage Key". insomnia/packages/insomnia/src/ui/components/templating/local-template-tags.ts Lines 428 to 433 in e0ec076
|
same problem |
Same problem on a Mac |
Same issue getting in v8.x, 2023.5.8, 2023.5.7, 2023.5.6, 2023.5.5, 2023.5.4 |
Same for me 8.30 version, build 10/13/2023. |
Please keep patience, one fix is wip: #6763 |
This has been fixed in 8.4.4, available for download today. |
Is there a possibility for the fix in old versions like 2023.5.8 ? (Don't want to upgrade to 8.x because of the cloud sync restrictions and also having multiple workspaces which are not available in the Local ScratchPad |
Just so you know, you can still use 8.x with local storage. We reverted back the mandatory cloud sync and from v8.3 onwards you can choose local, cloud or git storage. |
I agree that v8.3 onwards provide the local capability too, but as compared to old versions it is useless as it provides one collection / workspace, while in old versions most people have multiple collection for different API / Projects and each collection has multiple environments. Now everything is merged into one which is kind of not Insomnia famous for.\ Unless multiple collection is provided in local scratch pad version of 8.3 onwards in the future . |
You can have multiple local collections/projects after logging in for free. Without logging in you can still use the Scratch Pad which - as you noted - is limited to one collection only. |
Really frustrating that the fix is only included in a version that requires signing into an account to be useful. I've got probably a dozen collections I need to use, and I really don't want to sign into a cloud service just to use locally-stored collections in a desktop app. I'll just have to deal with the bug until I have the time to find a new local-only REST client and convert all my collections... |
https://github.com/ArchGPT/insomnium is the replacement I have found so you may want to look into this too. This is the older forked version of insomnia with bug fixed. |
Expected Behavior
When a request has a single "Prompt" tag in the URL (and nowhere else in the request), it should only prompt for input once.
Actual Behavior
A prompt appears for the same prompt tag twice in a row. The value from the first prompt is used in the request, but the value for the second prompt is stored as the "previous value".
If the first prompt is canceled, a dialog box shows up indicating the request failed:
![image](https://private-user-images.githubusercontent.com/816612/263049925-66a6ce96-1ca5-46c3-bcdd-df2060527008.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMzk4MTUsIm5iZiI6MTcyMTMzOTUxNSwicGF0aCI6Ii84MTY2MTIvMjYzMDQ5OTI1LTY2YTZjZTk2LTFjYTUtNDZjMy1iY2RkLWRmMjA2MDUyNzAwOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOFQyMTUxNTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMmE5NjUxYWI3YWYwNDU2NmZhOGRhNWIwMTIyOWM4MDRjZGQ4YzBiMGQ1NGI3YjVlMTBkYjlmMzE0YTM0OTY1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.CVznAXTbeKrKcLfWtjxAgJbzScVMc9lzfBxJs3RDQCs)
If the second prompt is canceled, the app crashes:
![image](https://private-user-images.githubusercontent.com/816612/263050327-e2231a0c-7fe3-4b4f-ae03-3a14b20d1e4a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMzk4MTUsIm5iZiI6MTcyMTMzOTUxNSwicGF0aCI6Ii84MTY2MTIvMjYzMDUwMzI3LWUyMjMxYTBjLTdmZTMtNGI0Zi1hZTAzLTNhMTRiMjBkMWU0YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOFQyMTUxNTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kMmJiNDI4Yzc3YzEzNzczNjgxNjE3NTdkZmZjNzk2ZjNhNzUxMjE1YjUzMGI1OWVkOGE2ZDlhNDgzYTEwZGFhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.tnS1bjVPOx9JyRbTYzTWvHv-2femqdrJamCnLvIN17w)
Reproduction Steps
Is there an existing issue for this?
Additional Information
No response
Insomnia Version
2023.5.6
What operating system are you using?
Windows
Operating System Version
Windows 10 22H2, build 19045
Installation method
Downloaded via website and updated recently using automatic updater
Last Known Working Insomnia version
No response
The text was updated successfully, but these errors were encountered: