[Question] Escaping {% and %}
See original GitHub issue- Insomnia Version: 6.5.4
- Operating System: Windows 10 v1903
Details
I’m debugging a web service that stores URL-encoded JSON in one of its cookies. Yes I know that’s awful, but that’s Parse.ly’s decision, not mine.
The problem is now I have a cookie that looks like this:
_parsely_visitor={%22id%22:%22pid=70617273656c79207375636b73%22%2C%22session_count%22:244%2C%22last_session_ts%22:1559156958078}
and that {%
trips up Insomnia’s template engine.
unknown block tag: 22id
I’ve tried wrapping the cookie string with {% raw %}
and {% endraw %}
but this seems to have no effect.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9 (1 by maintainers)
Top Results From Across the Web
How To Escape At The Last Minute - Purdue Computer Science
How To Escape At The Last Minute · Provide an incorrect answer. · Give a long-winded exposition on another topic unrelated to the...
Read more >Escaping Mega-Cringe Icebreakers - Elevate Experiences
Escaping Mega-Cringe Icebreakers · Here are ten unique question ideas: · 1. What is the grossest food you have ever eaten just to...
Read more >Probability: Escaping Prisoner Question - Math Stack Exchange
Question : A prisoner in a dark dungeon discovers three tunnels leading from his cell.
Read more >More details on prison escape, but No. 1 question remains
More questions than answers marked the investigation Tuesday into the daring and complex escape of two killers who slipped out of a northern ......
Read more >Officials refuse to answer questions about prison escape that ...
SEEKING ACCOUNTABILITY: KBTX questioned state and prison officials months after convicted Killer Gonzalo Lopez escaped custody and murdered ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, I recently ran into this issue with a cookie being set in Insomnia by a site I’m testing requests against that contains URL-encoded JSON as well. I have to delete the cookie between every request, otherwise the next one fails with the “failed to render Request.cookies[2].valuie prior to sending” error.
Perhaps Insomnia could at least be set to not try to to render cookies that weren’t set by the user with template strings. I don’t think there’s any reason to expect cookies set by a site would want to be using template variables set explicitly in Insomnia
Dang, didn’t mean to let this close. I would really appreciate a per-request or per-workspace option to disable rendering cookies.