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.

[Bug] Unable to copy urls from json response

See original GitHub issue
  • Insomnia Version: v5.12.4
  • Operating System: Ubuntu 17.10

Details

Hi there!

When working with a HATEOAS services, the backend sends a lot of urls to be consumed by the requester application. Usually these URLs are then used in others APIs to do other stuffs. The easy way to do that would be to copy the returned URL returned in the response JSON, and paste that URL in the new API request.

The problem here is that Insomnia doesn’t allow to copy URL in the JSON response, as you can see here:

image

Could this be a bug?

Best regards, Rafael Pacheco.

Edit: I just found that the Copy menu only enables if the json text is selected. But since these are URLs, they are hard to select, and a direct right click should allow to copy the url.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
gschiercommented, Jun 15, 2018

Bump

0reactions
ian-h-chamberlaincommented, Mar 18, 2022

I know this is an old issue, but I am facing what I think is the same on macOS. Right-clicking or ctrl-clicking seems to just open the URL in the browser, instead of allowing me to copy it.

It’s possibly to highlight the URL and copy it, but it’s easy to accidentally select too much or too little, and I think it would be a big improvement to automatically select the contents of the string for copying in this case.

Example reproduction can be found with the GitHub API: $.url when GETing https://api.github.com/repos/Kong/insomnia/pulls/4551

Since this has been closed, should I open a new issue to track this again?

Edit: I found some more recent discussion here: https://github.com/Kong/insomnia/discussions/3660

It seems like it doesn’t exactly address the issue, but is related at least.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to understand and parse the JSON URL response
I am new to JSON and unable to understand the response. In addition, I need to parse the response in json or in...
Read more >
How to Fix the Invalid JSON Response Error in WordPress
The WordPress invalid JSON response error happens in the new Block Editor (AKA Gutenberg) when something goes wrong on your site.
Read more >
Error while parsing JSON Response in REST API Post call
I have copied and pasted the REST Request and Response JSON definitions into the Request and Response text boxes provided by OS REST...
Read more >
How to Fix "Updating Failed. The Response is Not a Valid ...
The JSON response error could be appearing because your website addresses on the Settings page are not configured properly. To set things right, ......
Read more >
How to Fix the Invalid JSON Error in WordPress? - Rank Math
How To Fix 'Updating Failed. The Response is Not a Valid JSON Response' Error · Check the URL Settings of the WordPress Site...
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