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.

[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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
willpoormancommented, Dec 8, 2020

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

2reactions
jkmartindalecommented, Sep 21, 2019

Dang, didn’t mean to let this close. I would really appreciate a per-request or per-workspace option to disable rendering cookies.

Read more comments on GitHub >

github_iconTop 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 >

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